Function at 0x402470
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b1dc
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x828], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
mov dword [ebp - 0x818], ebx
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x814]
push esi
push 0x400
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4024f0
sub ecx, edx
sar ecx, 1
je 0x402719
lea ebx, [ebp - 0x814]
call fcn.004311d4
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4026eb
or edi, 0xffffffff
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x81c], eax
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x402541
xor eax, eax
jmp 0x402555
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402546
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x81c]
call fcn.0040fa60
mov esi, dword [ebp - 0x81c]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x4026f5
lea ebx, [ebx + eax*2]
add ebx, 2
call fcn.004311d4
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4026eb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x824], eax
mov byte [ebp - 4], 1
call fcn.004311d4
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4026eb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x820], eax
push 0x3d
push 0
push esi
lea eax, [ebp - 0x824]
mov byte [ebp - 4], 2
push eax
call fcn.00431ced
push 0x3d
push 1
push esi
lea eax, [ebp - 0x820]
push eax
call fcn.00431ced
lea eax, [ebp - 0x820]
push eax
lea edx, [ebp - 0x824]
lea ecx, [ebp - 0x830]
call fcn.0040e020
add esp, 4
mov ecx, dword [ebp - 0x828]
push eax
mov byte [ebp - 4], 3
call fcn.0040e170
push eax
add eax, 0x10
push eax
push ecx
mov ecx, dword [ebp - 0x828]
lea eax, [ebp - 0x838]
push eax
call fcn.0040e220
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x82c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402651
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x830]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402670
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc dword [ebp - 0x818]
mov ecx, edi
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x820]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402699
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x824]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4026bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4026dc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004311d4
mov ecx, eax
test ecx, ecx
jne 0x402524
push 0x80004005
call fcn.0040fbb0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x402713
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x818]
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 - 0x14]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret