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

Disassembly:
push 0xffffffffffffffff
push 0x502eac
mov eax, dword fs:[0]
push eax
sub esp, 0x580
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x57c], eax
push ebp
push esi
mov eax, dword [0x5375a0]
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.004c8700
add esp, 0x10
lea ecx, [esp + 0x138]
call fcn.00438ae0
mov eax, edi
lea edx, [esp + 0x138]
mov dword [esp + 0x594], 0
call fcn.00438d30
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x394]
push edx
lea ecx, [esp + 0x2c]
call fcn.00435960
cmp byte [esp + 0x130], 0
lea eax, [esp + 0x20]
jne 0x46c758
mov eax, dword [esp + 0x1c]
cmp word [eax + 4], 0x2e
jne 0x46c771
lea ecx, [esp + 0x14]
lea esi, [esp + 0x138]
call fcn.00436ab0
jmp 0x46c782
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x13c]
call fcn.00435f50
cmp byte [esp + 0x130], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x14], esi
jne 0x46c7aa
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x46c7aa
push eax
call fcn.004c6103
add esp, 4
mov dword [esp + 0x594], 1
cmp byte [esp + 0x254], 0
lea eax, [esp + 0x144]
jne 0x46c7cd
mov eax, dword [esp + 0x140]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46c81f
shr eax, 4
not al
and al, 1
je 0x46c81f
cmp byte [esp + 0x254], 0
mov dword [ebp], 2
mov dword [esp + 0x138], esi
jne 0x46c818
mov eax, dword [esp + 0x140]
lea edx, [esp + 0x144]
cmp eax, edx
je 0x46c818
push eax
call fcn.004c6103
add esp, 4
mov al, 1
jmp 0x46c9ee
push ebx
push str._s.png
lea eax, [esp + 0x388]
push 0x104
push eax
call fcn.004c8700
add esp, 0x10
lea ecx, [esp + 0x25c]
call fcn.00438ae0
mov eax, edi
lea edx, [esp + 0x25c]
mov byte [esp + 0x594], 2
call fcn.00438d30
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x394]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00435960
cmp byte [esp + 0x130], 0
lea eax, [esp + 0x20]
jne 0x46c889
mov eax, dword [esp + 0x1c]
cmp word [eax + 4], 0x2e
jne 0x46c8a7
lea ecx, [esp + 0x14]
lea esi, [esp + 0x25c]
call fcn.00436ab0
mov esi, vtable.t_str.0
jmp 0x46c8b8
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x260]
call fcn.00435f50
cmp byte [esp + 0x130], 0
mov dword [esp + 0x14], esi
jne 0x46c8db
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x46c8db
push eax
call fcn.004c6103
add esp, 4
mov byte [esp + 0x594], 3
cmp byte [esp + 0x378], 0
lea eax, [esp + 0x268]
jne 0x46c8fb
mov eax, dword [esp + 0x264]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46c970
shr eax, 4
not al
and al, 1
je 0x46c970
cmp byte [esp + 0x378], 0
mov dword [ebp], 1
mov dword [esp + 0x25c], esi
jne 0x46c946
mov eax, dword [esp + 0x264]
lea edx, [esp + 0x268]
cmp eax, edx
je 0x46c946
push eax
call fcn.004c6103
add esp, 4
cmp byte [esp + 0x254], 0
mov dword [esp + 0x138], esi
jne 0x46c818
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x144]
cmp eax, ecx
jmp 0x46c80d
mov ecx, dword [esp + 0x10]
mov dword [ebp], 0
call fcn.00437ec0
push str.unrecognized_pic_format.
push 0x5192f4
mov edx, eax
call fcn.004392f0
add esp, 8
cmp byte [esp + 0x378], 0
mov dword [esp + 0x25c], esi
jne 0x46c9c0
mov eax, dword [esp + 0x264]
lea edx, [esp + 0x268]
cmp eax, edx
je 0x46c9c0
push eax
call fcn.004c6103
add esp, 4
cmp byte [esp + 0x254], 0
mov dword [esp + 0x138], esi
jne 0x46c9ec
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x144]
cmp eax, ecx
je 0x46c9ec
push eax
call fcn.004c6103
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.004c60f4
add esp, 0x58c
ret