Function at 0x4638d0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b7e9c
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 0x463918
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 0x463ca3
mov dl, byte [0x4db948]
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 0x46398c
mov esi, dword [esp + 0x160]
cmp esi, ebx
je 0x46398c
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4dd148
lea ecx, [esp + 0x44]
push 0x104
push ecx
push 0x4db948
push esi
push eax
call edi
mov al, byte [esp + 0x40]
test al, al
jne 0x46398c
push 0x4dd148
lea edx, [esp + 0x44]
push 0x104
push edx
push 0x4db948
push esi
push str.GLDLG
call edi
mov al, byte [esp + 0x40]
mov dword [esp + 0x24], ebx
test al, al
jne 0x4639be
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 0x4dd044
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x40]
mov dword [esp + 0x14c], ebx
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_4
push ebx
push 0x4d7b24
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 1
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x463a72
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 sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x40]
push edx
push 0x4d6364
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
jmp 0x463a80
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0045526c
cmp dword [0x4dcdf4], ebx
je 0x463b2a
cmp dword [0x4dcdf8], ebx
je 0x463b2a
lea ecx, [esp + 0x14]
xor edi, edi
call sub.MFC42.DLL_CString::CString_5
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 0x463adf
cmp al, 0x2c
je 0x463adf
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x463ad3
cmp byte [esi], 0x2c
jne 0x463aed
inc esi
push esi
call ebx
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [0x4dcdf8]
push edi
push eax
push ecx
call fcn.0045d250
add esp, 0xc
test eax, eax
jne 0x463b0a
xor ebx, ebx
jmp 0x463b17
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 0x463b3d
mov edx, dword [esp + 0x18]
push ebx
push ebx
push 1
push edx
lea ecx, [ebp + 0x44]
call fcn.0045c540
mov ebx, eax
lea eax, [esp + 0x1c]
lea ecx, [ebp + 0x44]
push eax
call fcn.0045ce50
or ebx, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x463b78
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 0x463b93
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 0x463c59
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.0045d840
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