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

Disassembly:
push 0xffffffffffffffff
push 0x50a1bc
mov eax, dword fs:[0]
push eax
sub esp, 0x580
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x57c], eax
push ebp
push esi
mov eax, dword [0x5405a0]
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.004cf71e
add esp, 0x10
lea ecx, [esp + 0x138]
call fcn.0043a090
mov eax, edi
lea edx, [esp + 0x138]
mov dword [esp + 0x594], 0
call fcn.0043a2e0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x394]
push edx
lea ecx, [esp + 0x2c]
call fcn.00436ef0
cmp byte [esp + 0x130], 0
lea eax, [esp + 0x20]
jne 0x475708
mov eax, dword [esp + 0x1c]
cmp word [eax + 4], 0x2e
jne 0x475721
lea ecx, [esp + 0x14]
lea esi, [esp + 0x138]
call fcn.00438040
jmp 0x475732
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x13c]
call fcn.004374e0
cmp byte [esp + 0x130], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x14], esi
jne 0x47575a
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x47575a
push eax
call fcn.004ccef0
add esp, 4
mov dword [esp + 0x594], 1
cmp byte [esp + 0x254], 0
lea eax, [esp + 0x144]
jne 0x47577d
mov eax, dword [esp + 0x140]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4757cf
shr eax, 4
not al
and al, 1
je 0x4757cf
cmp byte [esp + 0x254], 0
mov dword [ebp], 2
mov dword [esp + 0x138], esi
jne 0x4757c8
mov eax, dword [esp + 0x140]
lea edx, [esp + 0x144]
cmp eax, edx
je 0x4757c8
push eax
call fcn.004ccef0
add esp, 4
mov al, 1
jmp 0x47599e
push ebx
push str._s.png
lea eax, [esp + 0x388]
push 0x104
push eax
call fcn.004cf71e
add esp, 0x10
lea ecx, [esp + 0x25c]
call fcn.0043a090
mov eax, edi
lea edx, [esp + 0x25c]
mov byte [esp + 0x594], 2
call fcn.0043a2e0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x394]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00436ef0
cmp byte [esp + 0x130], 0
lea eax, [esp + 0x20]
jne 0x475839
mov eax, dword [esp + 0x1c]
cmp word [eax + 4], 0x2e
jne 0x475857
lea ecx, [esp + 0x14]
lea esi, [esp + 0x25c]
call fcn.00438040
mov esi, vtable.t_str.0
jmp 0x475868
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x260]
call fcn.004374e0
cmp byte [esp + 0x130], 0
mov dword [esp + 0x14], esi
jne 0x47588b
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x47588b
push eax
call fcn.004ccef0
add esp, 4
mov byte [esp + 0x594], 3
cmp byte [esp + 0x378], 0
lea eax, [esp + 0x268]
jne 0x4758ab
mov eax, dword [esp + 0x264]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x475920
shr eax, 4
not al
and al, 1
je 0x475920
cmp byte [esp + 0x378], 0
mov dword [ebp], 1
mov dword [esp + 0x25c], esi
jne 0x4758f6
mov eax, dword [esp + 0x264]
lea edx, [esp + 0x268]
cmp eax, edx
je 0x4758f6
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x254], 0
mov dword [esp + 0x138], esi
jne 0x4757c8
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x144]
cmp eax, ecx
jmp 0x4757bd
mov ecx, dword [esp + 0x10]
mov dword [ebp], 0
call fcn.00439450
push str.unrecognized_pic_format.
push 0x52139c
mov edx, eax
call fcn.0043a8a0
add esp, 8
cmp byte [esp + 0x378], 0
mov dword [esp + 0x25c], esi
jne 0x475970
mov eax, dword [esp + 0x264]
lea edx, [esp + 0x268]
cmp eax, edx
je 0x475970
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x254], 0
mov dword [esp + 0x138], esi
jne 0x47599c
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0x144]
cmp eax, ecx
je 0x47599c
push eax
call fcn.004ccef0
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.004ccee1
add esp, 0x58c
ret