Function at 0x487500
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b9e7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
mov eax, dword [ebp + 8]
sub eax, 0x101
push ebx
push esi
push edi
mov esi, ecx
je 0x487693
sub eax, 3
jne 0x487927
cmp dword [ebp + 0xc], 0xd
jne 0x487927
mov eax, dword [0xec24bc]
test eax, eax
je 0x487569
xor eax, eax
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x653474]
mov ecx, dword [eax + 0x20]
test ecx, ecx
mov edi, dword [ecx + 0x60]
je 0x48757e
mov edx, dword [ecx]
push 1
call dword [edx]
push 0x64
call fcn.004a99fd
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x424], 0
je 0x4875a4
mov ecx, eax
call fcn.00419630
jmp 0x4875a6
xor eax, eax
test edi, edi
mov ecx, dword [0x653474]
mov dword [ecx + 0x20], eax
mov ecx, dword [0x653474]
mov dword [esp + 0x424], 0xffffffff
jne 0x4875cf
mov edx, dword [0x653498]
push 1
push edx
jmp 0x4875d7
mov eax, dword [0x653498]
push 0
push eax
call fcn.0041c990
mov eax, dword [0x653474]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 0x4c]
mov ecx, dword [eax + 0x24]
push edx
call fcn.004a21e0
mov eax, dword [0x653474]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 0x4c]
mov ecx, dword [eax + 0x28]
push edx
call fcn.004a21e0
mov eax, dword [0x653474]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 0x58]
mov ecx, dword [eax + 0x28]
push edx
call fcn.00451370
mov eax, dword [0x653474]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 0x4c]
mov ecx, dword [eax + 0x2c]
push edx
add ecx, 0x2394
call fcn.0046fbd0
mov eax, dword [0x653474]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 0x5c]
mov ecx, dword [eax + 0x2c]
push edx
add ecx, 0x2394
call fcn.0046fbc0
mov eax, dword [0x653474]
mov ecx, dword [eax + 0x2c]
add ecx, 0x2394
call fcn.00470110
mov ecx, dword [0x653474]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x4380], eax
mov ecx, dword [0x653474]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx + 0x50]
mov ecx, dword [eax]
add esi, 0x4384
push esi
push 0x4bf014
push eax
call dword [ecx]
jmp 0x487927
cmp dword [ebp + 0xc], 0x2c
jne 0x487927
mov eax, dword [esi + 0x4380]
test eax, eax
je 0x487927
mov dx, word [0x4bd910]
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x1f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x4bd912]
lea ecx, [esp + 0x14]
push ecx
mov word [esp + 0x10], dx
mov byte [esp + 0x12], al
call fcn.004ab0ce
lea edx, [esp + 0x18]
push edx
call fcn.004aaf4e
mov edi, eax
mov eax, dword [edi + 8]
mov ecx, 0xc
add esp, 8
cmp eax, ecx
jle 0x48770f
mov ax, word [0x4bd90c]
mov dl, byte [0x4bd90e]
mov word [esp + 0xc], ax
mov byte [esp + 0xe], dl
mov eax, dword [edi + 8]
cmp eax, ecx
jle 0x48771c
add eax, 0xfffffff4
mov dword [edi + 8], eax
mov eax, dword [edi + 8]
test eax, eax
jne 0x487726
mov dword [edi + 8], ecx
lea eax, [esp + 0x3b0]
push eax
call fcn.004a7b90
add esp, 4
lea ecx, [esp + 0xc]
push ecx
push edi
mov ebx, eax
call fcn.004abfbb
add esp, 4
push eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x24]
push str.__s___.19s__s
push edx
call ebx
mov eax, dword [esi + 0x4380]
mov ecx, dword [eax]
add esp, 0x14
lea edx, [esp + 0x10]
push edx
push eax
call dword [ecx + 0x44]
mov eax, dword [esp + 0x10]
push 2
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x10]
push 0xffffff
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x10]
push 0
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
lea eax, [esp + 0x18]
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4877a0
sub eax, ecx
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x4380]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x68]
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x4380]
push edx
push eax
lea ecx, [esi + 8]
call fcn.0045dcd0
xor eax, eax
mov byte [esp + 0x98], 0
mov ecx, 0x40
lea edi, [esp + 0x99]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x2a8], 0
mov ecx, 0x40
lea edi, [esp + 0x2a9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x1a0], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x1a1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x2a8]
push 0x104
push ecx
stosb byte es:[edi], al
call fcn.004ab591
add esp, 8
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x2a8]
mov byte [esp + eax + 0x1a0], cl
inc eax
test cl, cl
jne 0x487850
lea edi, [esp + 0x1a0]
dec edi
jmp 0x487870
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x487870
mov edx, dword [str._ini.ini]
mov eax, dword [0x4bbc80]
mov cl, byte [0x4bbc84]
mov dword [edi], edx
lea edx, [esp + 0x2a8]
push edx
mov dword [edi + 4], eax
lea eax, [esp + 0x9c]
push str._sAppie_
push eax
mov byte [edi + 8], cl
call ebx
add esp, 0xc
push 1
push 0xffff
lea ecx, [esp + 0xa0]
push ecx
mov ecx, dword [0x652e04]
add ecx, 0x2394
call fcn.0046f5e0
mov edx, dword [0xec0e0c]
mov eax, dword [edx]
add eax, 0x46b48
push eax
lea ecx, [esp + 0x1a4]
push ecx
push 0
push str.screen
push str.Screen
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
dec eax
push eax
lea edx, [esp + 0xa0]
push str._d.jpg__s
push edx
call ebx
mov ecx, dword [0x652e04]
add esp, 0x10
push 1
push 0xffff
lea eax, [esp + 0xa0]
push eax
add ecx, 0x2394
call fcn.0046f5e0
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc