Function at 0x403560
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5483cc
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5a7ee8]
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
mov edi, ecx
push 0x104
lea eax, [ebp - 0x214]
mov dword [edi + 0x98], 1
push eax
call fcn.00404610
lea ecx, [ebp - 0x214]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4035b2
mov eax, dword [str.defs2.ini]
mov dword [ecx], eax
mov eax, dword [0x559254]
mov dword [ecx + 4], eax
mov ax, word [0x559258]
mov word [ecx + 8], ax
mov al, byte [0x55925a]
mov byte [ecx + 0xa], al
call fcn.0040964e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4035f9
push 0x80004005
call fcn.00401e00
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0xa0]
call fcn.0040c660
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x214]
push eax
push 0xff
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x218]
push eax
push str.Name
push eax
call ebx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x224]
call fcn.00402500
lea eax, [ebp - 0x214]
mov byte [ebp - 4], 1
push eax
push 0xff
lea eax, [ebp - 0x110]
push eax
push 0x558cb0
push str.Section
push dword [ebp - 0x218]
call ebx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402500
mov byte [ebp - 4], 2
call fcn.0040964e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4036b7
push 0x80004005
call fcn.00401e00
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x214]
mov byte [ebp - 4], 3
push eax
push 0xff
lea eax, [ebp - 0x110]
push eax
push 0x558cb0
push 0x559278
push dword [ebp - 0x218]
call ebx
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403700
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.004023e0
push dword [edi + 0x9c]
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x110]
push 0xff
push eax
push esi
push dword [ebp - 0x224]
push dword [ebp - 0x21c]
call ebx
push 1
mov ecx, edi
call fcn.0040ec82
lea edx, [ebp - 0x110]
lea ecx, [edi + 0x114]
lea ebx, [edx + 1]
jmp 0x403760
mov al, byte [edx]
inc edx
test al, al
jne 0x403760
sub edx, ebx
lea eax, [ebp - 0x110]
push edx
push eax
call fcn.004023e0
push 0
mov ecx, edi
call fcn.0040ec82
lea edx, [esi - 0x10]
mov dword [edi + 0x98], 0
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4037a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4037cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4037ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x218]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x403813
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0052d1cc
mov esp, ebp
pop ebp
ret