Function at 0x473430
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fde2
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x597644]
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 0x473906
test eax, eax
je 0x473906
push ebx
lea ecx, [ebp - 0x248]
call fcn.00415430
push 0x500000
mov dword [ebp - 4], 0
call fcn.0049839c
push 0x500000
push 0
push eax
mov dword [ebp - 0x224], eax
call fcn.004dda00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dda00
add esp, 0x1c
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x473927
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.00415430
mov eax, dword [ebp - 0x21c]
mov ebx, 0x55db1c
sub ebx, eax
mov byte [ebp - 4], 2
push 0xe
push 0x55db1c
mov edi, dword [eax - 0xc]
sar ebx, 1
mov dword [ebp - 0x230], edi
call fcn.0050b8dc
mov ecx, SysReAllocString
mov dword [ebp - 0x22c], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x473931
add edi, eax
js 0x47393b
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 0x473564
push edi
lea ecx, [ebp - 0x21c]
call fcn.0040c910
mov eax, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x230]
cmp ebx, edx
lea ebx, [eax + ebx*2]
jbe 0x473576
mov ebx, 0x55db1c
mov ecx, dword [ebp - 0x22c]
lea eax, [eax + edx*2]
add ecx, ecx
push ecx
push ebx
push ecx
push eax
call fcn.00473950
mov eax, dword [ebp - 0x21c]
add esp, 0x10
cmp edi, dword [eax - 8]
jg 0x473931
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 0x47389a
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x228]
nop
movzx eax, word [ecx + eax*2]
test ax, ax
jne 0x473865
lea eax, [ebx + ebx]
cmp eax, 0x208
jae 0x473922
xor ecx, ecx
xor ebx, ebx
mov word [ebp + eax - 0x218], cx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x238], ebx
call fcn.00417690
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 0x47365e
push 0x104
lea ecx, [ebp - 0x220]
call fcn.0040c910
mov esi, dword [ebp - 0x220]
cmp dword [esi - 8], 0x104
jl 0x473931
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.0050b8dc
add esp, 8
test eax, eax
js 0x473931
cmp eax, dword [esi - 8]
jg 0x473931
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov edx, dword [esi - 0xc]
test edx, edx
je 0x473876
mov ecx, dword [ebp - 0x234]
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4736d0
sub ecx, edi
sar ecx, 1
cmovns ebx, ecx
cmp ebx, edx
jl 0x473700
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040fbf0
mov edi, dword [ebp - 0x23c]
jmp 0x473767
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x473710
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x473724
call fcn.00412520
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x473927
mov edx, dword [eax]
mov ecx, eax
push 2
push ebx
call dword [edx]
test eax, eax
je 0x473945
lea edi, [eax + 0x10]
mov dword [ebp - 0x23c], edi
test ebx, ebx
js 0x473931
cmp ebx, dword [edi - 8]
jg 0x473931
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.00473950
add esp, 0x10
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 3
test eax, eax
je 0x473927
push eax
push edi
call fcn.005085bf
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 0x4737a4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x473870
push dword [ebp - 0x244]
lea ecx, [ebp - 0x22c]
call fcn.00415430
push dword [ebp - 0x234]
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 4
call fcn.00415430
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.00473100
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 0x473819
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 0x47383a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
mov esi, dword [ebp - 0x220]
je 0x47385d
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 0x473879
mov word [ebp + ebx*2 - 0x218], ax
inc ebx
jmp 0x473885
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 0x4735f0
push dword [ebp - 0x224]
call fcn.004984fc
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 0x4738c9
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 0x4738e4
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 0x473906
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.004982ff
mov esp, ebp
pop ebp
ret
call fcn.004986e9
push 0x80004005
call fcn.0040ada0
push 0x80070057
call fcn.0040ada0
push 0x80070057
call fcn.0040ada0
call fcn.0040b390
int3