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

Disassembly:
push 0x98
mov eax, 0x10077e28
call fcn.1004e336
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa4], eax
cmp dword [esi + 0x14], 0x10
jb 0x10028df2
mov eax, dword [esi]
jmp 0x10028df4
mov eax, esi
push eax
push str.url:_hs
call fcn.10034d47
pop ecx
pop ecx
push str.partseq0
lea ecx, [ebp - 0x40]
call fcn.100017d6
push ecx
xor edi, edi
mov edx, eax
push 0xffffffffffffffff
push edi
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.1001a7ad
add esp, 0xc
lea ecx, [ebp - 0x40]
cmp eax, 0xffffffff
sete bl
or dword [ebp - 4], 0xffffffff
push edi
push 1
call fcn.10001805
test bl, bl
jne 0x10029004
push str.path
lea ecx, [ebp - 0x40]
call fcn.100017d6
push ecx
xor ebx, ebx
mov edx, eax
push 0xffffffffffffffff
inc ebx
mov ecx, esi
push edi
mov dword [ebp - 4], ebx
call fcn.1001a7ad
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
add esp, 0xc
mov edi, eax
push 0
push ebx
call fcn.10001805
cmp edi, 0xffffffff
je 0x10029004
push str.path
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x1008b29c
lea ecx, [ebp - 0x40]
add edi, eax
call fcn.100017d6
push ecx
push 0xffffffffffffffff
push edi
mov edx, eax
mov dword [ebp - 4], 2
mov ecx, esi
call fcn.1001a7ad
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
add esp, 0xc
mov ebx, eax
push 0
push 1
call fcn.10001805
cmp ebx, 0xffffffff
je 0x10029004
cmp edi, ebx
ja 0x10029004
sub ebx, edi
lea eax, [ebp - 0x40]
push ebx
push edi
push eax
mov ecx, esi
call fcn.10001727
mov edx, eax
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.1001a016
xor ebx, ebx
mov byte [ebp - 4], 5
xor esi, esi
lea ecx, [ebp - 0x40]
push ebx
inc esi
push esi
call fcn.10001805
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.100039d4
pop ecx
pop ecx
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x10028f25
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x58]
call fcn.1000587d
push ebx
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.100065b4
push ebx
push ebx
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.1002952f
mov byte [ebp - 4], 9
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
push str.fileName:_ls
call fcn.10034d47
add esp, 0x10
cmp dword [ebp - 0x18], 0
je 0x10028fd8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10028fd8
push 0x1008ce00
lea ecx, [ebp - 0x70]
call fcn.1000587d
push dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
push eax
call fcn.1002944e
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xb
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10028a27
push ebx
push esi
lea ecx, [ebp - 0xa0]
call fcn.100065b4
push ebx
push esi
lea ecx, [ebp - 0x70]
call fcn.100065b4
jmp 0x10028fe3
push str.invalid_file
call fcn.10034d47
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.100065b4
push ebx
push esi
lea ecx, [ebp - 0x58]
call fcn.100065b4
push ebx
push esi
lea ecx, [ebp - 0x88]
call fcn.10001805
call fcn.1004e2e0
ret 0x10