Function at 0x40c120
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a9aa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push str.SmallLogo
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi + 0xc]
mov di, word [eax]
neg di
sbb edi, edi
and edi, eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp edi, eax
mov dword [esp + 0x24], eax
je 0x40c218
lea ecx, [esp + 0x14]
call fcn.00435240
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.00435260
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x40c20a
mov eax, dword [ebp + 4]
mov ecx, dword [esi + 0xc]
push edx
push eax
push ecx
call ebx
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
push edx
push eax
mov eax, dword [0x4c0744]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [ebp + 0x1c]
add ecx, 0x28
call fcn.004074a0
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push edx
call fcn.00407ca0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c1ec
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40c204
mov eax, dword [esp + 0x30]
mov edx, dword [0x4c0744]
mov dword [eax + 0xac], edx
inc dword [0x4c0744]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.004046f0
mov ecx, dword [esi]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push str.BigLogo
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, dword [esi + 0xc]
cmp word [edi], 0
je 0x40c328
test edi, edi
je 0x40c328
lea ecx, [esp + 0x14]
call fcn.00435240
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.00435260
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x40c2fe
mov eax, dword [ebp + 4]
mov ecx, dword [esi + 0xc]
push edx
push eax
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov esi, dword [esi + 0xc]
mov ecx, dword [0x4c0744]
push eax
push esi
push ecx
mov ecx, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
add ecx, 0x28
call fcn.004074a0
mov eax, dword [eax]
mov esi, dword [esp + 0x2c]
cmp esi, eax
mov byte [esp + 0x24], 3
je 0x40c2c4
test eax, eax
mov dword [esp + 0x2c], eax
je 0x40c2ba
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
test esi, esi
je 0x40c2c4
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x24], 2
test eax, eax
je 0x40c2d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40c2ef
mov eax, dword [esp + 0x30]
mov edx, dword [0x4c0744]
mov dword [eax + 0xb0], edx
mov eax, dword [0x4c0744]
mov edx, dword [esp + 0x14]
inc eax
mov dword [0x4c0744], eax
mov eax, dword [0x4c0084]
lea ecx, [edx - 0xc]
cmp ecx, eax
je 0x40c328
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c328
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.0049c000
add esp, 4
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
test eax, eax
mov dword [esp + 0x18], 0xffffffff
pop ebx
je 0x40c342
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0xc]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x18
ret 8