Function at 0x4648f0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b7ddb
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0xf
jl 0x46491e
xor eax, eax
jmp 0x464b94
mov eax, dword [0x4dcdcc]
xor ebx, ebx
cmp eax, ebx
je 0x4649f0
cmp dword [0x4dcdd0], ebx
je 0x4649f0
mov ebp, dword [esp + 0x13c]
mov ecx, dword [esp + 0x138]
lea eax, [esp + 0x10]
push 0x4dd120
push eax
push ebp
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00458b20
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4dcdd0]
push edx
push eax
push ecx
call fcn.0045cd00
mov edi, eax
add esp, 0x1c
cmp edi, ebx
jne 0x4649ba
lea edx, [esp + 0x10]
push 0x4dd120
push edx
push ebp
push str.GLDLG
call fcn.00458b20
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [0x4dcdd0]
push eax
push ecx
push edx
call fcn.0045cd00
mov edi, eax
add esp, 0x1c
cmp edi, ebx
jne 0x4649ba
xor eax, eax
jmp 0x464b94
mov ecx, dword [esi + 0x10]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [esi + eax*4 + 0x18]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esi + 0x10]
push edi
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + eax*2]
lea ecx, [esi + ecx*4 + 0x18]
call sub.MFC42.DLL_CGdiObject::Attach
jmp 0x464aed
mov dl, byte [0x4db920]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x138]
cmp eax, ebx
je 0x464a60
mov edi, dword [esp + 0x13c]
cmp edi, ebx
je 0x464a60
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4dd120
lea ecx, [esp + 0x24]
push 0x104
push ecx
push 0x4db920
push edi
push eax
call ebp
cmp byte [esp + 0x20], bl
jne 0x464a6d
push 0x4dd120
lea edx, [esp + 0x24]
push 0x104
push edx
push 0x4db920
push edi
push str.GLDLG
call ebp
cmp byte [esp + 0x20], bl
jne 0x464a6d
xor eax, eax
jmp 0x464b94
push 0x4dd01c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x130], ebx
call fcn.004550cc
mov ecx, dword [esi + 0x10]
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + eax*2]
lea ecx, [esi + ecx*4 + 0x18]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x10]
push ebx
push ebx
lea eax, [ecx*8]
push 1
sub eax, ecx
push edx
lea eax, [eax + eax*2]
lea ecx, [esi + eax*4 + 0x18]
call fcn.0045bff0
test eax, eax
mov dword [esp + 0x12c], 0xffffffff
lea ecx, [esp + 0x10]
jne 0x464ae8
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x464b94
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x10]
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
lea ecx, [esi + edx*4 + 0x18]
call fcn.0045c900
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
cdq
and edx, 3
xor edi, edi
add eax, edx
mov edx, dword [esi + 0x10]
sar eax, 2
lea ecx, [edx*8]
sub ecx, edx
lea ecx, [ecx + ecx*2]
lea edx, [esi + ecx*4 + 0x4c]
mov dword [esi + ecx*4 + 0x4c], edi
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
mov dword [edx + 0xc], ebp
mov ecx, dword [esi + 0x10]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x134]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 0x14], ecx
mov ecx, dword [esi + 0x10]
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
mov dword [esi + edx*4 + 0x5c], 1
mov ecx, dword [esi + 0x10]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x14c]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 0x64], ecx
mov eax, dword [esi + 0x10]
inc eax
mov dword [esi + 0x10], eax
mov eax, 1
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret 0x1c