Function at 0x46cbe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50904c
mov eax, dword fs:[0]
push eax
sub esp, 0x580
mov eax, dword [0x53f5a0]
xor eax, esp
mov dword [esp + 0x57c], eax
push ebp
push esi
mov eax, dword [0x53f5a0]
xor eax, esp
push eax
lea eax, [esp + 0x58c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x59c]
mov ebp, dword [esp + 0x5a0]
push ebx
push str._s.gif
lea ecx, [esp + 0x388]
push 0x104
push ecx
mov dword [esp + 0x20], eax
call fcn.004ce818
add esp, 0x10
lea ecx, [esp + 0x138]
call fcn.00438f20
mov eax, edi
lea edx, [esp + 0x138]
mov dword [esp + 0x594], 0
call fcn.00439130
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x394]
push edx
lea ecx, [esp + 0x2c]
call fcn.00435dc0
cmp byte [esp + 0x130], 0
lea eax, [esp + 0x20]
jne 0x46cc98
mov eax, dword [esp + 0x1c]
cmp word [eax + 4], 0x2e
jne 0x46ccb1
lea ecx, [esp + 0x14]
lea esi, [esp + 0x138]
call fcn.00436ef0
jmp 0x46ccc2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x13c]
call fcn.00436390
cmp byte [esp + 0x130], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x14], esi
jne 0x46ccea
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x46ccea
push eax
call fcn.004cc2c0
add esp, 4
mov dword [esp + 0x594], 1
cmp byte [esp + 0x254], 0
lea eax, [esp + 0x144]
jne 0x46cd0d
mov eax, dword [esp + 0x140]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46cd5f
shr eax, 4
not al
and al, 1
je 0x46cd5f
cmp byte [esp + 0x254], 0
mov dword [ebp], 2
mov dword [esp + 0x138], esi
jne 0x46cd58
mov eax, dword [esp + 0x140]
lea edx, [esp + 0x144]
cmp eax, edx
je 0x46cd58
push eax
call fcn.004cc2c0
add esp, 4
mov al, 1
jmp 0x46cf2e
push ebx
push str._s.png
lea eax, [esp + 0x388]
push 0x104
push eax
call fcn.004ce818
add esp, 0x10
lea ecx, [esp + 0x25c]
call fcn.00438f20
mov eax, edi
lea edx, [esp + 0x25c]
mov byte [esp + 0x594], 2
call fcn.00439130
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x394]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00435dc0
cmp byte [esp + 0x130], 0
lea eax, [esp + 0x20]
jne 0x46cdc9
mov eax, dword [esp + 0x1c]
cmp word [eax + 4], 0x2e
jne 0x46cde7
lea ecx, [esp + 0x14]
lea esi, [esp + 0x25c]
call fcn.00436ef0
mov esi, vtable.t_str.0
jmp 0x46cdf8
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x260]
call fcn.00436390
cmp byte [esp + 0x130], 0
mov dword [esp + 0x14], esi
jne 0x46ce1b
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x46ce1b
push eax
call fcn.004cc2c0
add esp, 4
mov byte [esp + 0x594], 3
cmp byte [esp + 0x378], 0
lea eax, [esp + 0x268]
jne 0x46ce3b
mov eax, dword [esp + 0x264]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46ceb0
shr eax, 4
not al
and al, 1
je 0x46ceb0
cmp byte [esp + 0x378], 0
mov dword [ebp], 1
mov dword [esp + 0x25c], esi
jne 0x46ce86
mov eax, dword [esp + 0x264]
lea edx, [esp + 0x268]
cmp eax, edx
je 0x46ce86
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x254], 0
mov dword [esp + 0x138], esi
jne 0x46cd58
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x144]
cmp eax, ecx
jmp 0x46cd4d
mov ecx, dword [esp + 0x10]
mov dword [ebp], 0
call fcn.00438300
push str.unrecognized_pic_format.
push 0x51f1f4
mov edx, eax
call fcn.00439710
add esp, 8
cmp byte [esp + 0x378], 0
mov dword [esp + 0x25c], esi
jne 0x46cf00
mov eax, dword [esp + 0x264]
lea edx, [esp + 0x268]
cmp eax, edx
je 0x46cf00
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x254], 0
mov dword [esp + 0x138], esi
jne 0x46cf2c
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x144]
cmp eax, ecx
je 0x46cf2c
push eax
call fcn.004cc2c0
add esp, 4
xor al, al
mov ecx, dword [esp + 0x58c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x57c]
xor ecx, esp
call fcn.004cc2b1
add esp, 0x58c
ret