Function at 0x402e60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5356e0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x587c1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 1
mov byte [ebp - 0x11], 1
call fcn.004129bd
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402eb2
push 0x80004005
call fcn.004029a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004020e0
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.004020e0
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], vtable.CMutexEx.0
mov dword [ebp - 0x30], edi
call fcn.004129bd
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402f0c
push 0x80004005
call fcn.004029a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
push 0x58fcc4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00402a50
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.0040db90
test al, al
jne 0x402f4f
push 0x57e050
lea ecx, [ebp - 0x12]
push ecx
mov byte [ebp - 0x12], al
call fcn.00511cb4
cmp dword [0x58fd50], edi
jne 0x403076
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp + 8]
mov esi, 0x2710
call fcn.00404e10
test al, al
jne 0x402f81
mov byte [ebp - 0x13], al
push 0x57e050
lea eax, [ebp - 0x13]
push eax
call fcn.00511cb4
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411d3c
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x402fbc
mov byte [ebp - 0x14], al
push 0x57e050
lea eax, [ebp - 0x14]
push eax
call fcn.00511cb4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
push ecx
push esi
push edi
push edx
mov dword [edi], 0
call ebx
lea ecx, [esi - 2]
cmp eax, ecx
je 0x403045
mov esi, edi
mov bl, 8
lea esp, [esp]
cmp word [esi], 0
je 0x403076
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402620
mov byte [ebp - 4], bl
mov ecx, 0x58fd30
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x1c]
push eax
call edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403029
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403030
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
jmp 0x402fe0
push edi
call fcn.00411d47
add esp, 4
mov dword [ebp - 0x18], 0
add esi, 0x3e8
jmp 0x402f87
mov dword [ebp - 4], 6
test edi, edi
je 0x40308a
push edi
call fcn.00411d47
add esp, 4
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x4030a3
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030e5
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 - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403108
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40312b
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 + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40314e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403174
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8