Function at 0x520c90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x30], eax
lea ecx, [eax + 4]
call fcn.00522350
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0045a3a0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0051ed80
add esp, 8
or ebx, 0xffffffff
test eax, eax
jne 0x520cf3
xor esi, esi
jmp 0x520f1c
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.0051f170
add esp, 8
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
jne 0x520d16
xor esi, esi
jmp 0x520eff
mov dword [ebp - 0x20], 0
lea ecx, [ecx]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x3b
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00520360
add esp, 0x10
mov byte [ebp - 4], 2
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x520f5d
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x7fff
or eax, ecx
mov edi, dword [ebp - 0x10]
mov byte [ebp - 4], 3
jge 0x520d8f
push 0x7fff
lea ecx, [ebp + 8]
call fcn.0045b530
mov esi, dword [ebp + 8]
cmp dword [esi - 8], 0x7fff
jl 0x520f53
push edi
push 0x7fff
mov dword [esi - 0xc], 0x7fff
xor eax, eax
push esi
mov word [esi + 0xfffe], ax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x520eb0
xor edi, edi
test edi, edi
js 0x520ead
cmp edi, dword [esi - 0xc]
jge 0x520ead
lea eax, [esi + edi*2]
push 0x3d
push eax
call fcn.00526356
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x520ead
sub ebx, esi
sar ebx, 1
mov dword [ebp - 0x1c], ebx
cmp ebx, 0xffffffff
je 0x520ead
mov eax, ebx
lea ecx, [ebp + 8]
sub eax, edi
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.0045b170
inc ebx
mov byte [ebp - 4], 4
push ebx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.00493040
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push edi
push ebx
push dword [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00520f70
mov eax, dword [ebp - 0x1c]
test eax, eax
js 0x520e5e
cmp eax, dword [esi - 0xc]
jge 0x520e5e
lea eax, [esi + eax*2]
push 0
push eax
call fcn.00526356
add esp, 8
test eax, eax
je 0x520e5e
sub eax, esi
sar eax, 1
jmp 0x520e61
or eax, 0xffffffff
add edi, 0xfffffff0
mov byte [ebp - 4], 4
inc eax
or ecx, 0xffffffff
mov dword [ebp - 0x1c], eax
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x520e83
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 3
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
mov edi, dword [ebp - 0x1c]
test ecx, ecx
jg 0x520dc6
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x520dc6
or ebx, 0xffffffff
add esi, 0xfffffff0
mov byte [ebp - 4], 2
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x520ecd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x520eed
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x20], 0xffffffff
jne 0x520d20
mov eax, dword [ebp - 0x18]
mov esi, 1
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x520f1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x520f3d
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.0045a8f0
push 0x80004005
call fcn.0045a8f0
int3