Function at 0x42e680
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43876c
push eax
mov eax, dword [esp + 0x28]
mov dword fs:[0], esp
sub esp, 0x134
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
mov ebp, ecx
je 0x42e6c8
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x150]
push eax
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::SubclassDlgItem
test eax, eax
je 0x42ea53
mov dl, byte [0x446190]
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x15c]
cmp eax, ebx
je 0x42e73c
mov esi, dword [esp + 0x160]
cmp esi, ebx
je 0x42e73c
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x447bf0
lea ecx, [esp + 0x44]
push 0x104
push ecx
push 0x446190
push esi
push eax
call edi
mov al, byte [esp + 0x40]
test al, al
jne 0x42e73c
push 0x447bf0
lea edx, [esp + 0x44]
push 0x104
push edx
push 0x446190
push esi
push str.GLDLG
call edi
mov al, byte [esp + 0x40]
mov dword [esp + 0x24], ebx
test al, al
jne 0x42e76e
mov edi, str.dlgbutton.bmp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x447aec
lea ecx, [esp + 0x1c]
call fcn.00422114
lea ecx, [esp + 0x40]
mov dword [esp + 0x14c], ebx
push ecx
lea ecx, [esp + 0x14]
call fcn.00422114
push ebx
push 0x445f9c
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 1
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
je 0x42e822
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], 1
mov ecx, dword [edx - 8]
sub ecx, eax
lea eax, [esp + 0x14]
dec ecx
push ecx
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0042218c
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x40]
push edx
push 0x445118
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x42e830
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_2
cmp dword [0x44789c], ebx
je 0x42e8da
cmp dword [0x4478a0], ebx
je 0x42e8da
lea ecx, [esp + 0x14]
xor edi, edi
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x40]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x150], 3
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x14]
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
push esi
call ebx
mov dword [esp + 0x3c], eax
mov al, byte [esi]
add esp, 4
test al, al
je 0x42e88f
cmp al, 0x2c
je 0x42e88f
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x42e883
cmp byte [esi], 0x2c
jne 0x42e89d
inc esi
push esi
call ebx
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [0x4478a0]
push edi
push eax
push ecx
call fcn.00430680
add esp, 0xc
test eax, eax
jne 0x42e8ba
xor ebx, ebx
jmp 0x42e8c7
push eax
lea ecx, [ebp + 0x44]
call sub.MFC42.DLL_CGdiObject::Attach
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
mov byte [esp + 0x14c], 1
call sub.MFC42.DLL_CString::CString
jmp 0x42e8ed
mov edx, dword [esp + 0x18]
push ebx
push ebx
push 1
push edx
lea ecx, [ebp + 0x44]
call fcn.0042fa60
mov ebx, eax
lea eax, [esp + 0x1c]
lea ecx, [ebp + 0x44]
push eax
call fcn.004302f0
or ebx, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42e928
mov ecx, dword [esp + 0x1c]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov ecx, edx
mov dword [ebp + 0x90], 1
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x1c], edx
jmp 0x42e943
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x90], 0
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x20]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add edx, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], edx
add ecx, eax
lea edx, [esp + 0x28]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x154]
push edx
call sub.MFC42.DLL_CWnd::ScreenToClient
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MoveWindow
mov eax, dword [ebp + 0x90]
test eax, eax
je 0x42ea09
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov edx, dword [ebp + 0x48]
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
mov esi, eax
call fcn.00431a20
mov edi, eax
mov eax, dword [esp + 0x28]
add esp, 0xc
neg eax
shl eax, 2
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_OffsetRgn]
push 1
push edi
push esi
push esi
call dword [sym.imp.GDI32.dll_CombineRgn]
mov ecx, dword [ebp + 0x20]
push 0
push esi
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push edi
call esi
mov ecx, dword [esp + 0x168]
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x164]
mov dword [ebp + 0x80], ecx
lea ecx, [esp + 0x10]
mov dword [ebp + 0x40], edx
mov dword [ebp + 0x7c], eax
mov byte [esp + 0x14c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, ebx
pop esi
mov ecx, dword [esp + 0x13c]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 0x1c