Function at 0x407980
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebx, 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 ebp, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov di, word [eax]
mov dword [esp + 0x20], 0
neg di
sbb edi, edi
and edi, eax
test edi, edi
je 0x407a57
lea ecx, [esp + 0x14]
call fcn.0041e790
push edi
lea ecx, [esp + 0x18]
call fcn.0041e7b0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x407a4e
mov edx, dword [ebx + 4]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
mov edx, dword [0x4886a4]
push ecx
mov ecx, dword [ebx + 0x20]
push eax
lea eax, [esp + 0x18]
push edx
push eax
add ecx, 0x28
call fcn.00404e80
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x24]
call fcn.00407e70
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407a31
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x407a48
mov ecx, dword [esp + 0x24]
mov eax, dword [0x4886a4]
mov dword [ecx + 0x98], eax
inc dword [0x4886a4]
lea ecx, [esp + 0x14]
call fcn.00403680
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push str.BigLogo
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, dword [esi + 0xc]
cmp word [edi], 0
je 0x407b59
test edi, edi
je 0x407b59
lea ecx, [esp + 0x14]
call fcn.0041e790
push edi
lea ecx, [esp + 0x18]
call fcn.0041e7b0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x407b2e
mov ecx, dword [ebx + 4]
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
call ebp
mov eax, dword [esp + 0x18]
mov esi, dword [esi + 0xc]
mov ecx, dword [0x4886a4]
push eax
push esi
push ecx
mov ecx, dword [ebx + 0x20]
lea edx, [esp + 0x1c]
push edx
add ecx, 0x28
call fcn.00404e80
mov eax, dword [eax]
mov esi, dword [esp + 0x20]
cmp esi, eax
je 0x407af9
test eax, eax
mov dword [esp + 0x20], eax
je 0x407aef
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
test esi, esi
je 0x407af9
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407b07
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x407b1f
mov eax, dword [esp + 0x24]
mov edx, dword [0x4886a4]
mov dword [eax + 0x9c], edx
mov eax, dword [0x4886a4]
inc eax
mov dword [0x4886a4], eax
mov eax, dword [esp + 0x14]
mov edx, dword [0x4881a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x407b59
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x407b59
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004472d3
add esp, 4
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x407b6b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
add esp, 0xc
ret 8