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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x10220c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x20]
mov ecx, edi
mov dword [ebp - 0x814], edi
call fcn.010019d2
mov ebx, 0x105
test eax, eax
jne 0x1010239
lea edi, [esi + 0x18]
mov eax, dword [edi]
mov dword [ebp - 0x810], edi
test eax, eax
je 0x100911b
mov eax, dword [eax]
push 0x25
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x101026d
lea edi, [esi + 0x1c]
mov ecx, edi
mov dword [ebp - 0x818], edi
call fcn.010019d2
test eax, eax
jne 0x1010282
mov ecx, esi
call fcn.01004aaf
mov ecx, esi
call fcn.010085ba
test eax, eax
jl 0x1009102
xor eax, eax
and dword [ebp - 0xc], eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov word [ebp - 0x80c], ax
mov eax, dword [ebp - 0x810]
mov eax, dword [eax]
xor edi, edi
cmp eax, edi
je 0x1009136
mov eax, dword [eax]
push edi
push edi
push edi
push edi
mov esi, 0x400
push esi
lea ecx, [ebp - 0x80c]
push ecx
push 4
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.msvcrt.dll__wsplitpath_s
add esp, 0x24
cmp eax, edi
jne 0x10102ba
lea eax, [ebp - 0x80c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1009061
sub eax, edx
sar eax, 1
je 0x10102cf
mov edi, dword [ebp - 0x810]
mov eax, dword [edi]
test eax, eax
je 0x100913d
mov eax, dword [eax]
push 0x20
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
jne 0x10103b1
mov eax, dword [edi]
test eax, eax
je 0x100914d
mov eax, dword [eax]
push eax
push esi
lea eax, [ebp - 0x80c]
push eax
call fcn.0100a08f
push 0x1004140
push esi
lea eax, [ebp - 0x80c]
push eax
call fcn.01008842
mov esi, eax
test esi, esi
jl 0x1009100
push dword [ebp - 0x818]
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.01009159
mov ecx, dword [ebp - 0x818]
push eax
call fcn.01006061
mov ecx, dword [ebp - 0x814]
test ecx, ecx
je 0x1009100
call fcn.010018c8
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001e98
leave
ret
test eax, eax
jge 0x1008fb6
jmp 0x1009102
xor eax, eax
jmp 0x1008fcb
test eax, eax
jge 0x1008fde
jmp 0x1009102
test eax, eax
jge 0x1008ff6
jmp 0x1009102
xor eax, eax
jmp 0x1009030
xor eax, eax
jmp 0x1009087
test eax, eax
jl 0x1009102
jmp 0x10090b4
xor eax, eax
jmp 0x10090a6
mov eax, dword [edi]
test eax, eax
je 0x1010243
mov eax, dword [eax]
jmp 0x1010245
xor eax, eax
push 0x25
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x1008fb6
push ebx
lea eax, [ebp - 0x80c]
push eax
push edi
mov ecx, esi
call fcn.010192e0
jmp 0x1009111
push ebx
lea eax, [ebp - 0x80c]
push eax
push edi
mov ecx, esi
call fcn.010192e0
jmp 0x1009122
mov eax, dword [edi]
test eax, eax
je 0x101028c
mov eax, dword [eax]
jmp 0x101028e
xor eax, eax
push 0x25
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x1008ff6
push 0x400
lea eax, [ebp - 0x80c]
push eax
push edi
mov ecx, esi
call fcn.010192e0
jmp 0x100912c
jle 0x1009102
and eax, 0xffff
or eax, 0x80070000
jmp 0x1009102
lea eax, [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10102d5
sub eax, edx
sar eax, 1
jne 0x1009075
mov edi, dword [ebp - 0x814]
mov ecx, edi
call fcn.010019d2
test eax, eax
jbe 0x1009075
mov eax, dword [edi]
test eax, eax
je 0x1010308
mov eax, dword [eax]
jmp 0x101030a
xor eax, eax
push eax
push ebx
lea eax, [ebp - 0x80c]
push eax
call fcn.0100a08f
test eax, eax
jl 0x1009102
mov eax, dword [edi]
test eax, eax
je 0x101032a
mov esi, dword [eax]
jmp 0x101032c
xor esi, esi
mov ecx, edi
call fcn.010019d2
push 0x5c
pop ecx
cmp cx, word [esi + eax*2 - 2]
je 0x1010357
push 0x1003394
push ebx
lea eax, [ebp - 0x80c]
push eax
call fcn.01008842
test eax, eax
jl 0x1009102
mov eax, dword [ebp - 0x810]
mov eax, dword [eax]
test eax, eax
je 0x1010367
mov eax, dword [eax]
jmp 0x1010369
xor eax, eax
push eax
push ebx
lea eax, [ebp - 0x80c]
push eax
call fcn.01008842
test eax, eax
jl 0x1009102
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.API_MS_Win_Core_File_L1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10103a7
test al, 0x10
jne 0x10103a7
mov ecx, dword [ebp - 0x810]
lea eax, [ebp - 0x80c]
push eax
call fcn.010045b5
mov esi, 0x400
jmp 0x1009075
push 0x22
pop eax
mov word [ebp - 0x80c], ax
xor eax, eax
mov word [ebp - 0x80a], ax
mov eax, dword [edi]
test eax, eax
je 0x10103ce
mov eax, dword [eax]
jmp 0x10103d0
xor eax, eax
push eax
push esi
lea eax, [ebp - 0x80c]
push eax
call fcn.01008842
test eax, eax
jl 0x1009102
push 0x100413c
push esi
lea eax, [ebp - 0x80c]
push eax
call fcn.01008842
jmp 0x1009144