Function at 0x420190
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b338
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5e2500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
or dword [esi + 0x78], 0x1088080
call fcn.0045f83d
call fcn.0045f83d
mov eax, dword [eax + 0xc]
push 0x390
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov eax, dword [esi + 0x20]
push ebx
push 1
push 0x80
push eax
call edi
mov ecx, dword [esi + 0x20]
push ebx
xor ebx, ebx
push ebx
push 0x80
push ecx
call edi
mov ecx, esi
call fcn.0045e542
mov edx, dword [esi + 0x20]
or eax, 0xa0000
push eax
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 0x20]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.0045f981
mov ecx, dword [eax + 4]
push str.Minimize
push 0xf020
push 0x400
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_InsertMenuW]
push 9
mov ecx, esi
call fcn.0045e48e
cmp eax, ebx
je 0x420265
push 9
mov ecx, esi
call fcn.0045e48e
push ebx
mov ecx, eax
call fcn.0045e699
mov eax, dword [esi + 0x20]
lea edx, [ebp - 0x50]
push edx
push eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [ebp - 0x20], 0x3023
mov dword [ebp - 0x1c], 0x3024
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], 0x3025
call fcn.0044c93b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4202b5
push 0x80004005
call fcn.00401330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x54], ebx
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp + ecx*4 - 0x20]
push edx
mov ecx, esi
call fcn.0045e48e
mov edi, eax
cmp edi, ebx
je 0x420309
mov ecx, dword [edi + 0x20]
lea eax, [ebp - 0x30]
push eax
push ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push ebx
mov ecx, edi
call fcn.0045e699
push ebx
mov ecx, edi
call fcn.0045e6db
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp eax, 4
jb 0x4202ca
mov edx, dword [0x5e3b68]
push 0x10
mov dword [ebp - 0x54], edx
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, ebx
je 0x420345
lea eax, [edi + 4]
push eax
mov dword [eax], ebx
mov eax, dword [ebp - 0x54]
push eax
mov dword [edi], vtable.Gdiplus::Image.0
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [edi + 8], eax
jmp 0x420347
xor edi, edi
mov dword [esi + 0xf88], edi
mov ecx, dword [0x5e3b64]
push 0x10
mov dword [ebp - 0x54], ecx
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, ebx
je 0x42037d
mov edx, dword [ebp - 0x54]
lea eax, [edi + 4]
push eax
push edx
mov dword [edi], vtable.Gdiplus::Image.0
mov dword [eax], ebx
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [edi + 8], eax
jmp 0x42037f
xor edi, edi
mov dword [esi + 0xf84], edi
mov dword [esi + 0xf8c], ebx
mov dword [esi + 0xf90], ebx
push 0x580060
lea ecx, [ebp - 0x58]
mov dword [0x5e3b6c], ebx
call fcn.00404670
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x5e3c90
mov byte [ebp - 4], 1
call fcn.004261a0
mov edi, dword [eax]
mov edx, dword [ebp - 0x58]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x400
or eax, ecx
mov byte [ebp - 4], 2
jge 0x4203e3
push 0x400
lea ecx, [ebp - 0x58]
call fcn.00401de0
mov edx, dword [ebp - 0x58]
mov eax, 0x400
cmp dword [edx - 8], eax
jge 0x4203f7
push 0x80070057
call fcn.00401330
push edi
push 0x400
push edx
push 0x580060
mov dword [edx - 0xc], eax
mov eax, dword [ebp - 0x58]
push str.Setuptype
xor ecx, ecx
push 0x580e40
mov word [eax + 0x800], cx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420445
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0054d87f
add esp, 8
cmp eax, ebx
jl 0x4203ed
mov ecx, dword [ebp - 0x58]
cmp eax, dword [ecx - 8]
jg 0x4203ed
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x58]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x58]
push str.PLUS
push eax
call fcn.0054d1d7
add esp, 8
cmp eax, ebx
je 0x420575
push str.Classic
push str.Setuptype
push 8
push 0x5e3e78
call fcn.0042b490
mov edx, dword [esi + 0x20]
add esp, 0x10
lea ecx, [ebp - 0x30]
push ecx
push edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
fild dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
add eax, 0x14
fmul qword [0x585028]
mov dword [ebp - 0x54], eax
call fcn.0054e560
mov ecx, dword [ebp - 0x28]
mov edx, dword [esi + 0xe58]
mov edx, dword [edx + 0x5c]
push ebx
push 0x3e8
sub ecx, eax
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0x20]
push eax
mov eax, dword [ebp - 0x5c]
push 0x14
add ecx, 0x3c
push ecx
mov ecx, dword [ebp - 0x54]
push ecx
push eax
push 0x50000000
push ebx
push str.STATIC
push 0x1020
lea ecx, [esi + 0xe58]
call edx
push 1
lea ecx, [esi + 0xe58]
call fcn.0045e699
push 0x5e3aa0
lea edi, [esi + 0xecc]
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
mov ecx, edi
call fcn.004522ed
cmp edi, ebx
jne 0x42053f
xor edi, edi
jmp 0x420542
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xe78]
push 1
push edi
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
push ecx
mov ecx, 0x5e3c90
call fcn.00426320
push 0x3e8
mov ecx, esi
call fcn.00420070
jmp 0x42058e
push str.PLUS
push str.Setuptype
push 8
push 0x5e3e78
call fcn.0042b490
add esp, 0x10
mov ecx, esi
call fcn.0044d64a
mov ecx, esi
mov dword [ebp - 0x60], eax
call fcn.0044daeb
mov edx, dword [eax + 0x20]
lea edi, [esi + 0xf94]
push edi
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
mov ecx, esi
call fcn.00451d78
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0xfa0]
lea ecx, [ebp - 0x40]
push ecx
push edx
mov dword [esi + 0xfa4], eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x34]
sub eax, dword [esi + 0xfa4]
mov edx, dword [esi + 0xf9c]
push eax
mov dword [esi + 0xfa8], eax
mov eax, dword [esi + 0xf8c]
mov edi, dword [0x5e3b68]
push edx
push eax
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov dword [ebp - 0x5c], esp
mov dword [ebp - 0x54], esp
call eax
cmp dword [edi + 0xc], ebx
lea edx, [edi + 0xc]
jl 0x42063b
cmp eax, dword [edi]
jne 0x42063b
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x42067b
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jne 0x420655
call fcn.00401940
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 4]
lea edx, [ecx + ecx + 2]
push edx
add edi, 0x10
push edi
lea ecx, [ecx + ecx + 2]
push ecx
add eax, 0x10
push eax
call fcn.0054cda6
mov edi, dword [ebp - 0x5c]
add esp, 0x10
mov edx, dword [ebp - 0x54]
add edi, 0x10
mov ecx, esi
mov dword [edx], edi
call fcn.0041bb00
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 0x580060
call fcn.00404670
mov ecx, esi
call fcn.0041efe0
mov ecx, esi
mov dword [esi + 0xee0], 1
call fcn.0044daeb
mov dword [esi + 0xf74], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x174]
call eax
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4206e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42070c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054dc83
mov esp, ebp
pop ebp
ret