Function at 0x5395c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572a0b
mov eax, dword fs:[0]
push eax
sub esp, 0x578
mov eax, dword [0x661850]
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
mov dword [ebp - 0x584], esi
call fcn.0053ff40
xor ebx, ebx
push 0x78
lea eax, [esi + 0x1fa]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CWHDXGraphicWindow.0
call fcn.005454d0
add esp, 0xc
lea eax, [ebp - 0x579]
push eax
lea ecx, [ebp - 0x579]
push ecx
lea ecx, [esi + 0x273]
call fcn.00437e40
mov eax, dword fs:[0x2c]
mov edx, dword [0x7dd2e8]
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx + 0x2010]
mov dword [ebp - 0x584], ecx
cmp eax, 0x200
jge 0x539690
inc eax
mov dword [ecx + 0x2010], eax
shl eax, 4
add eax, ecx
mov dword [eax + 0x10], str.WHDXGraphic.cpp
mov dword [eax + 0x14], str.CWHDXGraphicWindow::CWHDXGraphicWindow
mov dword [eax + 0x18], 0x4d
mov byte [ebp - 0x579], 1
mov dword [eax + 0x1c], 0x5889ac
jmp 0x539696
mov byte [ebp - 0x579], bl
push 0x103
lea ecx, [ebp - 0x167]
push ebx
push ecx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov byte [ebp - 0x168], bl
call fcn.005454d0
lea edx, [ebp - 0x168]
push edx
push str..init.ini
call fcn.00534340
push eax
lea eax, [ebp - 0x578]
push 0x104
push eax
call fcn.005477d6
add esp, 0x20
lea ecx, [ebp - 0x578]
push ecx
push 0x32
lea edx, [ebp - 0x64]
push edx
push str..king3.ini
push str.IniName
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00534340
push eax
lea edx, [ebp - 0x370]
push 0x104
push edx
call fcn.005477d6
add esp, 0x14
lea eax, [ebp - 0x370]
push eax
push 2
push str.ScreenMetrics
push str.setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0x320
je 0x539762
cmp eax, 0x400
jne 0x539762
mov edi, eax
mov dword [ebp - 0x580], 0x300
jmp 0x539771
mov dword [ebp - 0x580], 0x258
mov edi, 0x320
push eax
lea ecx, [ebp - 0x30]
push 0x57aa60
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x370]
push edx
lea eax, [ebp - 0x30]
push eax
push str.ScreenMetrics
push str.setup
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov cx, word [ebp - 0x580]
mov dx, word [ebp + 8]
push ebx
push ebx
push ebx
push ebx
lea eax, [esi + 0x1ca]
push eax
mov word [esi + 0x1da], di
mov word [esi + 0x1dc], cx
mov word [esi + 0x1de], dx
mov word [esi + 0x64], 0x101
call dword [sym.imp.USER32.dll_SetRect]
fld1
xor eax, eax
mov dword [esi + 0x1e0], eax
mov dword [esi + 0x1e4], eax
mov dword [esi + 0x1e8], eax
mov dword [esi + 0x1ec], eax
mov word [esi + 0x1f0], ax
mov dword [0x7dcc68], esi
fst dword [esi + 0x1ba]
fstp dword [esi + 0x1b6]
mov dword [esi + 0x1c2], ebx
mov dword [esi + 0x1c6], ebx
mov dword [esi + 0x1a2], ebx
mov dword [esi + 0x1a6], ebx
mov dword [esi + 0x1aa], ebx
mov dword [esi + 0x1ae], ebx
mov dword [esi + 0x1f2], ebx
cmp byte [ebp - 0x579], bl
je 0x539849
mov eax, dword [ebp - 0x584]
dec dword [eax + 0x2010]
mov eax, esi
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.0054514c
mov esp, ebp
pop ebp
ret 4