Function at 0x563640
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ccd5
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5ebfc4]
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 esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], 0
mov dword [ebp - 4], 2
call fcn.00407271
mov ecx, eax
test ecx, ecx
je 0x563857
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5940e4
jne 0x563861
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [edi], eax
cmp dword [ebp + 0x14], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], 1
je 0x563701
push dword [esi + 0xd8]
push 0x100
push eax
push 0x5c2c40
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5636f1
jmp 0x56378b
push dword [esi + 0xd4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x100
push eax
push 0x5c2c44
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call ebx
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x563730
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00402430
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x56379e
push dword [esi + 0xd8]
lea eax, [ebp - 0x210]
push 0x100
push eax
push 0x5c2c48
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call ebx
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x563780
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00402430
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov ecx, dword [ebp + 0xc]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x5637fe
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x214], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, 0x5940e4
jne 0x563872
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x214], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x563868
push 0
push dword [edx + 4]
call ebx
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x563837
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x5940e4
jne 0x56387c
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x56387c
push 0
push dword [edx + 4]
call ebx
mov eax, edi
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.0053c0f2
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00402ab0
call edx
jmp 0x5636b0
mov ecx, edx
call dword [ebp - 0x214]
jmp 0x5637fe
mov ecx, edx
call dword [ebp - 0x214]
jmp 0x5637fe
mov ecx, edx
call esi
jmp 0x563837