Function at 0x402e50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535f30
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x588c64]
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.00412a4b
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402ea2
push 0x80004005
call fcn.00402980
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.00412a4b
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x402efc
push 0x80004005
call fcn.00402980
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
push 0x590d44
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00402a40
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.0040db70
test al, al
jne 0x402f3f
push 0x57e448
lea ecx, [ebp - 0x12]
push ecx
mov byte [ebp - 0x12], al
call fcn.00512466
cmp dword [0x590dd0], edi
jne 0x403066
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp + 8]
mov esi, 0x2710
call fcn.00404e00
test al, al
jne 0x402f71
mov byte [ebp - 0x13], al
push 0x57e448
lea eax, [ebp - 0x13]
push eax
call fcn.00512466
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.00411dec
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x402fac
mov byte [ebp - 0x14], al
push 0x57e448
lea eax, [ebp - 0x14]
push eax
call fcn.00512466
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 0x403035
mov esi, edi
mov bl, 8
lea esp, [esp]
cmp word [esi], 0
je 0x403066
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402600
mov byte [ebp - 4], bl
mov ecx, 0x590db0
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 0x403019
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 0x403020
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
jmp 0x402fd0
push edi
call fcn.00411df7
add esp, 4
mov dword [ebp - 0x18], 0
add esi, 0x3e8
jmp 0x402f77
mov dword [ebp - 4], 6
test edi, edi
je 0x40307a
push edi
call fcn.00411df7
add esp, 4
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x403093
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 0x4030b2
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 0x4030d5
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 0x4030f8
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 0x40311b
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 0x40313e
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 0x403164
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