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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x3c], edx
push edi
mov edi, esi
mov dword [ebp - 0x44], eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4b9bd6
sub edi, ecx
mov eax, esi
mov ecx, 0x5a5ec0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b9c0b
test dl, dl
je 0x4b9c02
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b9c0b
add eax, 2
add ecx, 2
test dl, dl
jne 0x4b9be6
mov dword [ebp - 0x40], 0
jmp 0x4b9c13
sbb eax, eax
or eax, 1
mov dword [ebp - 0x40], eax
cmp esi, dword [0x5bcfbc]
jne 0x4b9c82
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x4b9c29
mov eax, dword [0x5dedc4]
mov dword [ecx], eax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4b9c36
mov dword [eax], 0xfffffffe
test ebx, ebx
je 0x4b9c6c
mov eax, dword [0x5dedd0]
mov ecx, dword [0x5dedd4]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
mov eax, dword [0x5dedd0]
mov ecx, dword [0x5dedd4]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
mov eax, dword [0x5dedd0]
mov ecx, dword [0x5dedd4]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov eax, dword [0x5dedc8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
lea eax, [edi + 1]
push eax
call fcn.0051e703
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4b9de1
mov ecx, eax
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4b9ca0
mov esi, dword [ebp - 0x48]
mov edx, 0x2f
mov ecx, esi
call fcn.004b7c60
lea ecx, [esi - 1]
add ecx, edi
cmp eax, ecx
jne 0x4b9cca
mov byte [esi + edi - 1], 0
mov edi, dword [ebp - 0x40]
test edi, edi
jne 0x4b9d12
push edi
call fcn.0052c46a
add esp, 4
push eax
call fcn.0052f154
add esp, 4
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.0052d357
add esp, 8
test eax, eax
jne 0x4b9df0
lea eax, [ebp - 0x18]
push eax
call fcn.0051e806
add esp, 4
cmp dword [ebp - 0x3c], 0
je 0x4b9d79
test edi, edi
jne 0x4b9d3c
xor ecx, ecx
jmp 0x4b9d67
lea edx, [ebp - 0x38]
mov ecx, esi
call fcn.004b7fd0
test eax, eax
je 0x4b9d04
push esi
call fcn.0051cad9
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4b9d64
push str.zip_diagnostic:_GetFileAttributes_failed_n
push dword [0x629e3c]
call fcn.00456fe0
add esp, 8
mov ecx, 0x20
jmp 0x4b9d67
and ecx, 0x37
mov edx, dword [ebp - 0x32]
movzx eax, dx
shl eax, 0x10
or eax, ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
jmp 0x4b9d7c
mov edx, dword [ebp - 0x32]
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4b9d98
and edx, 0xf000
or eax, 0xffffffff
cmp edx, 0x8000
cmove eax, dword [ebp - 0x24]
mov dword [ecx], eax
test ebx, ebx
je 0x4b9dbf
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
push esi
call fcn.0051cad9
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.004b74e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov edx, str.filetime
mov ecx, 4
call fcn.004b3b50
push esi
call fcn.0051cad9
add esp, 4
mov ecx, str.fstat_stdin_
call fcn.004b3d30
int3