Function at 0x4021e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ecd4
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.004273b0
mov eax, dword [0x43b050]
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
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1024], edi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, section..data
mov dword [ebp - 0x1020], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov edi, 1
mov ecx, section..data
mov dword [ebp - 0x1024], edi
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x1018], esi
mov dword [ebp - 4], edi
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x101c], eax
mov byte [ebp - 4], 2
mov ecx, dword [0x43e564]
lea edi, [ebp - 0x1014]
call fcn.00411ff0
push eax
lea eax, [ebp - 0x1028]
push eax
mov ebx, 0x43e584
mov byte [ebp - 4], 3
call fcn.00403780
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x4022ff
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4022ef
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4022ef
call fcn.00403b90
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x4022e4
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [ebp - 0x1018], ebx
jmp 0x4022ff
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x1018]
push ecx
call fcn.00403ae0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1028]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402325
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40234b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x43e560]
lea edi, [ebp - 0x1014]
call fcn.00411ff0
mov byte [ebp - 4], 5
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x1018]
call fcn.00403d60
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402398
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x1000
lea ecx, [ebp - 0x1010]
push 0
push ecx
call fcn.0041d2e0
mov edx, dword [ebp - 0x1018]
add esp, 0xc
push edx
push 0x800
lea eax, [ebp - 0x1010]
push eax
push 0x432a70
push 0x4329fc
push 0x432a08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1010]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4023e0
sub eax, edx
sar eax, 1
cmp eax, 0x1b
jbe 0x402490
lea eax, [ebp - 0xfda]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402401
sub eax, edx
lea ecx, [ebp - 0xfda]
sar eax, 1
push ecx
lea edx, [ebp - 0x101c]
push edx
mov ebx, eax
call fcn.00403ae0
mov edx, dword [ebp - 0x101c]
lea ecx, [ebp - 0x1014]
call fcn.00411dc0
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x1020]
mov edi, esi
call fcn.004032d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40246d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
je 0x402496
call fcn.00401f50
mov ecx, dword [esi]
test ecx, ecx
je 0x402489
call fcn.00402050
test eax, eax
jne 0x402496
call fcn.00403830
jmp 0x402496
mov esi, dword [ebp - 0x1020]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x101c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4024bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1018]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4024e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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.0041b25d
mov esp, ebp
pop ebp
ret