Function at 0x465090
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4f623e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov eax, dword [0x52bd18]
push ebx
push esi
push edi
mov edi, dword [esp + 0x158]
test edi, edi
mov ebx, ecx
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x154]
mov dword [esp + 0x18], ebx
mov dword [ebx + 0x30], eax
lea esi, [ebx + 0x2c]
jne 0x4650dc
xor eax, eax
jmp 0x4650ea
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4650e1
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.00401880
mov eax, dword [esi]
push 0x5c
push eax
call fcn.004d0543
add esp, 8
test eax, eax
jne 0x465109
or eax, 0xffffffff
jmp 0x46510b
sub eax, dword [esi]
push eax
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0040d5a0
push eax
mov ecx, esi
mov dword [esp + 0x150], 0
call fcn.004040e0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x14c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x465156
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebx + 8]
mov edx, dword [eax]
cmp edx, eax
mov dword [esp + 0xc], edx
je 0x465456
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, edi
mov esi, dword [edx + 0x10]
test esi, esi
je 0x4653f6
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4653f6
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esi]
push edi
push 0xff
lea ecx, [esp + 0x4c]
push ecx
push 0x4fca4e
push str.Resource
push eax
mov dword [esp + 0x168], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x44]
lea ecx, [eax + 1]
jmp 0x4651d0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4651d0
sub eax, ecx
push eax
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401880
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
call fcn.00464e80
mov eax, dword [ebx - 0xc]
test eax, eax
je 0x4653c9
push 0x104
call fcn.004df18e
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x150], 2
je 0x46522c
mov ecx, eax
call fcn.00465f10
mov dword [esp + 0x20], eax
jmp 0x465234
mov dword [esp + 0x20], 0
mov byte [esp + 0x150], 1
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esi]
push edi
push 0
push 0x508614
push eax
mov byte [esp + 0x160], 3
call ebp
push edi
push 0
mov ebx, eax
mov eax, dword [esi]
push 0x508610
push eax
call ebp
push edi
push 0
mov dword [esp + 0x30], eax
mov eax, dword [esi]
push str.Width
push eax
call ebp
push edi
push 0
mov dword [esp + 0x34], eax
mov eax, dword [esi]
push str.Height
push eax
call ebp
push edi
push 0
mov dword [esp + 0x38], eax
mov eax, dword [esi]
push str.HasText
push eax
call ebp
push edi
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
push str.HasLanguage
push eax
call ebp
mov eax, dword [esi]
push edi
push 0xff
lea ecx, [esp + 0x4c]
push ecx
push 0x4fca4e
push str.Align
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x44]
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4652e0
sub eax, ecx
push eax
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x20]
call fcn.00401880
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi + 0x10], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esi + 0x14], eax
lea eax, [esp + 0x18]
mov dword [esi + 0x18], ecx
push eax
mov ecx, ebx
mov dword [esi + 0x1c], edx
call fcn.00464260
mov edx, dword [esi + 8]
lea ecx, [esp + 0x34]
push ecx
push edx
mov ecx, ebx
mov dword [esi + 0x20], eax
call fcn.00464640
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
push edx
mov edx, dword [ebx + 0x30]
push edx
lea edx, [esp + 0x3c]
push edx
push 0
push 0x4fca4e
call dword [eax + 0x130]
mov eax, dword [esp + 0x14]
push eax
mov ecx, ebx
call fcn.00464fd0
test eax, eax
jne 0x46536f
push str.Normal
mov ecx, ebx
call fcn.00464fd0
mov ebx, dword [esp + 0x20]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x24]
test eax, eax
mov eax, dword [esi + 4]
mov ecx, ebx
je 0x46538b
push eax
call fcn.004e3647
jmp 0x465393
push 1
push eax
call fcn.00466a60
push 5
mov ecx, ebx
call fcn.004e36c1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esi + 0xc], ebx
mov byte [esp + 0x150], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4653c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x14]
add ebx, 0xfffffff0
mov dword [esp + 0x150], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4653ee
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov al, byte [edx + 0x15]
test al, al
jne 0x46544c
mov ecx, dword [edx + 8]
mov al, byte [ecx + 0x15]
test al, al
jne 0x465421
mov eax, dword [ecx]
mov dl, byte [eax + 0x15]
test dl, dl
jne 0x46541b
mov ecx, eax
mov eax, dword [ecx]
mov dl, byte [eax + 0x15]
test dl, dl
je 0x465410
mov dword [esp + 0x10], ecx
jmp 0x465448
mov eax, dword [edx + 4]
mov cl, byte [eax + 0x15]
test cl, cl
jne 0x465444
jmp 0x465431
mov edx, dword [esp + 0x10]
cmp edx, dword [eax + 8]
jne 0x465444
mov dword [esp + 0x10], eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x15]
test cl, cl
je 0x46542d
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
cmp edx, dword [ebx + 8]
jne 0x465170
pop ebp
mov ecx, dword [esp + 0x144]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x138]
pop ebx
call fcn.004ce183
add esp, 0x144
ret 8