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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, edx
mov dword [ebp - 0x40], eax
mov eax, esi
mov dword [ebp - 0x3c], ecx
push edi
mov dword [ebp - 0x48], ebx
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47d780
sub eax, ecx
mov edi, eax
mov dword [ebp - 0x44], edi
mov ecx, 0x4e02ec
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47d7b5
test dl, dl
je 0x47d7b1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47d7b5
add eax, 2
add ecx, 2
test dl, dl
jne 0x47d795
xor eax, eax
jmp 0x47d7ba
sbb eax, eax
sbb eax, 0xffffffff
xor edx, edx
test eax, eax
sete dl
mov dword [ebp - 0x4c], edx
cmp esi, dword [0x544850]
jne 0x47d835
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x47d7db
mov ecx, dword [0x544860]
mov dword [eax], ecx
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x47d7e8
mov dword [eax], 0xfffffffe
test ebx, ebx
je 0x47d81f
mov edx, dword [0x544868]
mov dword [ebx + 0x10], edx
mov eax, dword [0x54486c]
mov dword [ebx + 0x14], eax
mov ecx, dword [0x544868]
mov dword [ebx + 8], ecx
mov edx, dword [0x54486c]
mov dword [ebx + 0xc], edx
mov eax, dword [0x544868]
mov dword [ebx], eax
mov ecx, dword [0x54486c]
mov dword [ebx + 4], ecx
mov eax, dword [0x54485c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
inc edi
push edi
call fcn.004aa188
mov edi, eax
add esp, 4
test edi, edi
jne 0x47d851
push 4
mov eax, str.filetime
call fcn.00475b00
mov edx, edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x47d857
mov ebx, 0x2f
mov eax, edi
call fcn.0047bbf0
mov ecx, dword [ebp - 0x44]
lea edx, [edi + ecx - 1]
cmp eax, edx
jne 0x47d87d
mov byte [edi + ecx - 1], 0
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x47d8d3
call fcn.004abb88
push eax
call fcn.004ad06b
add esp, 4
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.004b263f
add esp, 8
test eax, eax
je 0x47d8b8
push edi
call fcn.004aa14e
add esp, 4
push 5
mov eax, str.fstat_stdin_
call fcn.00475b00
lea edx, [ebp - 0x18]
push edx
call fcn.004a92ca
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x47d931
test esi, esi
je 0x47d8fd
xor eax, eax
jmp 0x47d926
lea ebx, [ebp - 0x38]
mov eax, edi
call fcn.0047c910
test eax, eax
je 0x47d8c4
push edi
call fcn.004aa14e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47d923
mov eax, dword [0x579aa4]
push str.zip_diagnostic:_GetFileAttributes_failed_n
push eax
call fcn.004abd3d
add esp, 8
mov eax, 0x20
jmp 0x47d926
and eax, 0x37
movzx ecx, word [ebp - 0x32]
shl ecx, 0x10
or ecx, eax
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x47d953
mov edx, dword [ebp - 0x32]
and edx, 0xf000
cmp edx, 0x8000
jne 0x47d94e
mov eax, dword [ebp - 0x24]
jmp 0x47d951
or eax, 0xffffffff
mov dword [ecx], eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x47d97d
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
push edi
call fcn.004aa14e
add esp, 4
lea eax, [ebp - 0x18]
call fcn.00478b70
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret