Function at 0x402380
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41710b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x41fea0]
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 dword [ebp - 0x424], ebx
mov dword [ebp - 0x41c], 0
mov dword [ebp - 4], 3
call fcn.00402b80
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4023e4
push 0x80004005
call fcn.00401670
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x414], eax
mov byte [ebp - 4], 4
call fcn.00402b80
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x402412
push 0x80004005
call fcn.00401670
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
or edi, 0xffffffff
mov dword [ebp - 0x41c], 1
cmp dword [eax - 0xc], 0
jl 0x40245c
push 0x4182a0
push eax
call fcn.004072df
add esp, 8
test eax, eax
je 0x40245c
sub eax, dword [ebp + 0xc]
test eax, eax
jle 0x40245c
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x414]
call fcn.00401210
jmp 0x4024d6
lea eax, [ebp - 0x420]
push eax
call fcn.00401940
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004012c0
add esp, 0x10
push eax
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 6
call fcn.00401210
mov edx, dword [ebp - 0x418]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4024b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x420]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4024d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x414]
mov ecx, 1
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
or eax, ecx
jge 0x4024fe
push 0
lea ecx, [ebp - 0x414]
call fcn.00402dc0
mov esi, dword [ebp - 0x414]
mov edx, dword [ebp + 0x14]
mov ecx, 1
mov dword [ebp - 0x418], edx
sub ecx, dword [edx - 4]
mov eax, dword [edx - 8]
or eax, ecx
jge 0x402529
push 0
lea ecx, [ebp + 0x14]
call fcn.00402dc0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x10]
mov edx, 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x402548
push 0
lea ecx, [ebp + 0x10]
call fcn.00402dc0
mov eax, dword [ebp + 0x10]
push esi
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push 0
push dword [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x402584
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402571
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
jmp 0x40258b
push 0
push 0x418268
mov ecx, ebx
call fcn.00402fa0
add esi, 0xfffffff0
mov byte [ebp - 4], 3
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4025af
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4025cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4025ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x14]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40260d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.00407792
mov esp, ebp
pop ebp
ret