Function at 0x463300
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b7c9c
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 0x463348
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 0x4636d3
mov dl, byte [0x4db920]
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 0x4633bc
mov esi, dword [esp + 0x160]
cmp esi, ebx
je 0x4633bc
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4dd120
lea ecx, [esp + 0x44]
push 0x104
push ecx
push 0x4db920
push esi
push eax
call edi
mov al, byte [esp + 0x40]
test al, al
jne 0x4633bc
push 0x4dd120
lea edx, [esp + 0x44]
push 0x104
push edx
push 0x4db920
push esi
push str.GLDLG
call edi
mov al, byte [esp + 0x40]
mov dword [esp + 0x24], ebx
test al, al
jne 0x4633ee
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 0x4dd01c
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 0x4634a2
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 0x4634b0
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004550cc
cmp dword [0x4dcdcc], ebx
je 0x46355a
cmp dword [0x4dcdd0], ebx
je 0x46355a
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 0x46350f
cmp al, 0x2c
je 0x46350f
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x463503
cmp byte [esi], 0x2c
jne 0x46351d
inc esi
push esi
call ebx
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [0x4dcdd0]
push edi
push eax
push ecx
call fcn.0045cd00
add esp, 0xc
test eax, eax
jne 0x46353a
xor ebx, ebx
jmp 0x463547
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 0x46356d
mov edx, dword [esp + 0x18]
push ebx
push ebx
push 1
push edx
lea ecx, [ebp + 0x44]
call fcn.0045bff0
mov ebx, eax
lea eax, [esp + 0x1c]
lea ecx, [ebp + 0x44]
push eax
call fcn.0045c900
or ebx, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4635a8
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 0x4635c3
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 0x463689
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.0045d2f0
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