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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005d72f
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x100741c0]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x100741c0]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
jb 0x10023886
mov eax, dword [edi + 4]
jmp 0x10023889
lea eax, [edi + 4]
push eax
push str.url:_hs
call fcn.100293a0
pop ecx
pop ecx
push str.partseq0
lea ecx, [esp + 0x24]
call fcn.10001976
and dword [esp + 0xd8], 0
push 0xffffffffffffffff
push eax
push edi
xor ecx, ecx
call fcn.1001663a
add esp, 0xc
cmp eax, 0xffffffff
sete byte [esp + 0x17]
or dword [esp + 0xd8], 0xffffffff
xor ebx, ebx
push 0
inc ebx
push ebx
lea ecx, [esp + 0x28]
call fcn.10001e5b
cmp byte [esp + 0x17], 0
jne 0x10023b08
mov esi, str.path
push esi
lea ecx, [esp + 0x24]
call fcn.10001976
push 0xffffffffffffffff
push eax
push edi
xor ecx, ecx
mov dword [esp + 0xe4], ebx
call fcn.1001663a
or dword [esp + 0xe4], 0xffffffff
add esp, 0xc
push 0
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], eax
call fcn.10001e5b
cmp dword [esp + 0x18], 0xffffffff
je 0x10023b08
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add dword [esp + 0x18], eax
push 0x10064b14
lea ecx, [esp + 0x24]
call fcn.10001976
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
push edi
mov dword [esp + 0xe4], 2
call fcn.1001663a
or dword [esp + 0xe4], 0xffffffff
add esp, 0xc
push 0
push ebx
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.10001e5b
cmp esi, 0xffffffff
je 0x10023b08
cmp dword [esp + 0x18], esi
ja 0x10023b08
sub esi, dword [esp + 0x18]
push esi
push dword [esp + 0x1c]
lea esi, [esp + 0x28]
push edi
call fcn.10005504
mov edx, eax
lea ecx, [esp + 0xac]
mov dword [esp + 0xd8], 3
call fcn.1001546a
xor edi, edi
push edi
push ebx
mov ecx, esi
mov byte [esp + 0xe0], 5
call fcn.10001e5b
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x40]
call fcn.10003019
pop ecx
mov byte [esp + 0xd8], 6
cmp dword [eax + 0x18], 8
jb 0x100239ec
mov eax, dword [eax + 4]
jmp 0x100239ef
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea esi, [esp + 0x94]
call fcn.100057e7
push edi
push ebx
lea esi, [esp + 0x44]
mov byte [esp + 0xe0], 8
call fcn.10006669
push edi
lea eax, [esp + 0x94]
push edi
push eax
lea ecx, [esp + 0x80]
call fcn.100241b0
add esp, 0xc
mov byte [esp + 0xd8], 9
cmp dword [esp + 0xa8], 8
mov eax, dword [esp + 0x94]
jae 0x10023a4f
lea eax, [esp + 0x94]
push eax
push str.fileName:_ls
call fcn.100293a0
pop ecx
pop ecx
cmp dword [esp + 0x88], edi
je 0x10023ad6
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x10023a77
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10023ad6
push 0x10066350
lea esi, [esp + 0x40]
call fcn.100057e7
push dword [esp + 0x1c]
lea edi, [esp + 0x5c]
mov byte [esp + 0xdc], 0xa
call fcn.100240cb
mov ecx, esi
push ecx
push eax
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0xe4], 0xb
call fcn.100233a4
xor edi, edi
push edi
push ebx
lea esi, [esp + 0x60]
call fcn.10006669
push edi
push ebx
lea esi, [esp + 0x44]
call fcn.10006669
jmp 0x10023ae1
push str.invalid_file
call fcn.100293a0
pop ecx
push edi
push ebx
lea esi, [esp + 0x7c]
call fcn.10006669
push edi
push ebx
lea esi, [esp + 0x98]
call fcn.10006669
push edi
push ebx
lea ecx, [esp + 0xb4]
call fcn.10001e5b
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.1003edc1
mov esp, ebp
pop ebp
ret 0x10