Function at 0x40f090
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a9db0
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 0x40f188
lea ecx, [esp + 0x14]
call fcn.0043bf30
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.0043bf50
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x40f17a
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 [0x4c2af4]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [ebp + 0x1c]
add ecx, 0x28
call fcn.0040ae50
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push edx
call fcn.0040b4f0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40f15c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40f174
mov eax, dword [esp + 0x30]
mov edx, dword [0x4c2af4]
mov dword [eax + 0xbc], edx
inc dword [0x4c2af4]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.004056c0
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 0x40f298
test edi, edi
je 0x40f298
lea ecx, [esp + 0x14]
call fcn.0043bf30
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.0043bf50
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x40f26e
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 [0x4c2af4]
push eax
push esi
push ecx
mov ecx, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
add ecx, 0x28
call fcn.0040ae50
mov eax, dword [eax]
mov esi, dword [esp + 0x2c]
cmp esi, eax
mov byte [esp + 0x24], 3
je 0x40f234
test eax, eax
mov dword [esp + 0x2c], eax
je 0x40f22a
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
test esi, esi
je 0x40f234
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x24], 2
test eax, eax
je 0x40f247
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40f25f
mov eax, dword [esp + 0x30]
mov edx, dword [0x4c2af4]
mov dword [eax + 0xc0], edx
mov eax, dword [0x4c2af4]
mov edx, dword [esp + 0x14]
inc eax
mov dword [0x4c2af4], eax
mov eax, dword [0x4c2084]
lea ecx, [edx - 0xc]
cmp ecx, eax
je 0x40f298
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f298
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.00442ac0
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 0x40f2b2
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