Function at 0x471fa0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f242
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x596634]
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 ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x244], ebx
test ebx, ebx
je 0x472476
test eax, eax
je 0x472476
push ebx
lea ecx, [ebp - 0x248]
call fcn.004155f0
push 0x500000
mov dword [ebp - 4], 0
call fcn.00496dec
push 0x500000
push 0
push eax
mov dword [ebp - 0x224], eax
call fcn.004dcfa0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dcfa0
add esp, 0x1c
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x472497
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
push ebx
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.004155f0
mov eax, dword [ebp - 0x21c]
mov ebx, 0x55c9f0
sub ebx, eax
mov byte [ebp - 4], 2
push 0xe
push 0x55c9f0
mov edi, dword [eax - 0xc]
sar ebx, 1
mov dword [ebp - 0x230], edi
call fcn.0050ae7c
mov ecx, SysReAllocString
mov dword [ebp - 0x22c], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x4724a1
add edi, eax
js 0x4724ab
mov eax, dword [ebp - 0x21c]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x4720d4
push edi
lea ecx, [ebp - 0x21c]
call fcn.0040cad0
mov eax, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x230]
cmp ebx, edx
lea ebx, [eax + ebx*2]
jbe 0x4720e6
mov ebx, 0x55c9f0
mov ecx, dword [ebp - 0x22c]
lea eax, [eax + edx*2]
add ecx, ecx
push ecx
push ebx
push ecx
push eax
call fcn.004724c0
mov eax, dword [ebp - 0x21c]
add esp, 0x10
cmp edi, dword [eax - 8]
jg 0x4724a1
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
mov word [eax + edi*2], cx
push dword [ebp - 0x21c]
push 0x280000
push dword [ebp - 0x224]
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x228], ecx
or edi, 0xffffffff
mov dword [ebp - 0x230], eax
test ecx, ecx
je 0x47240a
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x228]
nop
movzx eax, word [ecx + eax*2]
test ax, ax
jne 0x4723d5
lea eax, [ebx + ebx]
cmp eax, 0x208
jae 0x472492
xor ecx, ecx
xor ebx, ebx
mov word [ebp + eax - 0x218], cx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x238], ebx
call fcn.00417850
mov esi, dword [ebp - 0x220]
mov ecx, 1
mov edi, dword [ebp - 0x21c]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4721ce
push 0x104
lea ecx, [ebp - 0x220]
call fcn.0040cad0
mov esi, dword [ebp - 0x220]
cmp dword [esi - 8], 0x104
jl 0x4724a1
push edi
push 0x104
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
push eax
mov word [esi + 0x208], ax
lea eax, [ebp - 0x218]
push str.path
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.0050ae7c
add esp, 8
test eax, eax
js 0x4724a1
cmp eax, dword [esi - 8]
jg 0x4724a1
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov edx, dword [esi - 0xc]
test edx, edx
je 0x4723e6
mov ecx, dword [ebp - 0x234]
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472240
sub ecx, edi
sar ecx, 1
cmovns ebx, ecx
cmp ebx, edx
jl 0x472270
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040fdb0
mov edi, dword [ebp - 0x23c]
jmp 0x4722d7
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x472280
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x472294
call fcn.004126e0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x472497
mov edx, dword [eax]
mov ecx, eax
push 2
push ebx
call dword [edx]
test eax, eax
je 0x4724b5
lea edi, [eax + 0x10]
mov dword [ebp - 0x23c], edi
test ebx, ebx
js 0x4724a1
cmp ebx, dword [edi - 8]
jg 0x4724a1
lea eax, [ebx + ebx]
mov dword [edi - 0xc], ebx
push eax
push esi
push eax
xor ecx, ecx
push edi
mov word [edi + eax], cx
call fcn.004724c0
add esp, 0x10
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 3
test eax, eax
je 0x472497
push eax
push edi
call fcn.00507b5f
add esp, 8
mov byte [ebp - 4], 2
test eax, eax
sete bl
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x472314
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4723e0
push dword [ebp - 0x244]
lea ecx, [ebp - 0x22c]
call fcn.004155f0
push dword [ebp - 0x234]
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 4
call fcn.004155f0
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00471c70
mov edx, dword [ebp - 0x240]
or edi, 0xffffffff
add esp, 0xc
mov byte [ebp - 4], 4
mov esi, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x472389
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x22c]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4723aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
mov esi, dword [ebp - 0x220]
je 0x4723cd
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push esi
push str.path
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ebx, dword [ebp - 0x238]
jmp 0x4723e9
mov word [ebp + ebx*2 - 0x218], ax
inc ebx
jmp 0x4723f5
mov ebx, dword [ebp - 0x238]
or edi, 0xffffffff
mov edx, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x230], eax
cmp eax, edx
jb 0x472160
push dword [ebp - 0x224]
call fcn.00496f4c
mov edx, dword [ebp - 0x21c]
add esp, 4
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x472439
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x472454
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x248]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x472476
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.00496d46
mov esp, ebp
pop ebp
ret
call fcn.00497139
push 0x80004005
call fcn.0040af60
push 0x80070057
call fcn.0040af60
push 0x80070057
call fcn.0040af60
call fcn.0040b550
int3