Function at 0x466fd0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4fc3fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov eax, dword [0x531d28]
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 0x46701c
xor eax, eax
jmp 0x46702a
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x467021
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.00401880
mov eax, dword [esi]
push 0x5c
push eax
call fcn.004d6483
add esp, 8
test eax, eax
jne 0x467049
or eax, 0xffffffff
jmp 0x46704b
sub eax, dword [esi]
push eax
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0040d3d0
push eax
mov ecx, esi
mov dword [esp + 0x150], 0
call fcn.00403fd0
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 0x467096
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 0x467396
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, edi
mov esi, dword [edx + 0x10]
test esi, esi
je 0x467336
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x467336
call fcn.004e5159
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 0x502a56
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 0x467110
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x467110
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.00466dc0
mov eax, dword [ebx - 0xc]
test eax, eax
je 0x467309
push 0x104
call fcn.004e50ce
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x150], 2
je 0x46716c
mov ecx, eax
call fcn.00467e90
mov dword [esp + 0x20], eax
jmp 0x467174
mov dword [esp + 0x20], 0
mov byte [esp + 0x150], 1
call fcn.004e5159
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 0x50e4fc
push eax
mov byte [esp + 0x160], 3
call ebp
push edi
push 0
mov ebx, eax
mov eax, dword [esi]
push 0x50e4f8
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 0x502a56
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 0x467220
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.004661a0
mov edx, dword [esi + 8]
lea ecx, [esp + 0x34]
push ecx
push edx
mov ecx, ebx
mov dword [esi + 0x20], eax
call fcn.00466580
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 0x502a56
call dword [eax + 0x130]
mov eax, dword [esp + 0x14]
push eax
mov ecx, ebx
call fcn.00466f10
test eax, eax
jne 0x4672af
push str.Normal
mov ecx, ebx
call fcn.00466f10
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 0x4672cb
push eax
call fcn.004e95b9
jmp 0x4672d3
push 1
push eax
call fcn.004689e0
push 5
mov ecx, ebx
call fcn.004e9633
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 0x467305
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 0x46732e
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 0x46738c
mov ecx, dword [edx + 8]
mov al, byte [ecx + 0x15]
test al, al
jne 0x467361
mov eax, dword [ecx]
mov dl, byte [eax + 0x15]
test dl, dl
jne 0x46735b
mov ecx, eax
mov eax, dword [ecx]
mov dl, byte [eax + 0x15]
test dl, dl
je 0x467350
mov dword [esp + 0x10], ecx
jmp 0x467388
mov eax, dword [edx + 4]
mov cl, byte [eax + 0x15]
test cl, cl
jne 0x467384
jmp 0x467371
mov edx, dword [esp + 0x10]
cmp edx, dword [eax + 8]
jne 0x467384
mov dword [esp + 0x10], eax
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x15]
test cl, cl
je 0x46736d
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
cmp edx, dword [ebx + 8]
jne 0x4670b0
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.004d40be
add esp, 0x144
ret 8