Function at 0x40cf60
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4b0540
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 0x40d058
lea ecx, [esp + 0x14]
call fcn.004364e0
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.00436500
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x40d04a
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 [0x4c89b4]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [ebp + 0x1c]
add ecx, 0x28
call fcn.004082d0
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push edx
call fcn.00408ad0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d02c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40d044
mov eax, dword [esp + 0x30]
mov edx, dword [0x4c89b4]
mov dword [eax + 0xac], edx
inc dword [0x4c89b4]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.00405a40
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 0x40d168
test edi, edi
je 0x40d168
lea ecx, [esp + 0x14]
call fcn.004364e0
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.00436500
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x40d13e
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 [0x4c89b4]
push eax
push esi
push ecx
mov ecx, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
add ecx, 0x28
call fcn.004082d0
mov eax, dword [eax]
mov esi, dword [esp + 0x2c]
cmp esi, eax
mov byte [esp + 0x24], 3
je 0x40d104
test eax, eax
mov dword [esp + 0x2c], eax
je 0x40d0fa
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
test esi, esi
je 0x40d104
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x24], 2
test eax, eax
je 0x40d117
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40d12f
mov eax, dword [esp + 0x30]
mov edx, dword [0x4c89b4]
mov dword [eax + 0xb0], edx
mov eax, dword [0x4c89b4]
mov edx, dword [esp + 0x14]
inc eax
mov dword [0x4c89b4], eax
mov eax, dword [0x4c8084]
lea ecx, [edx - 0xc]
cmp ecx, eax
je 0x40d168
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40d168
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.0043b3d0
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 0x40d182
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