Function at 0x689163c0
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
xor eax, eax
mov word [ebp - 0x38], ax
xor ecx, ecx
mov dword [ebp - 0x36], ecx
mov word [ebp - 0x32], cx
mov dword [ebp - 0xc], 0
xor edx, edx
mov word [ebp - 0x24], dx
xor eax, eax
mov dword [ebp - 0x22], eax
mov word [ebp - 0x1e], ax
xor ecx, ecx
mov word [ebp - 0x2c], cx
xor edx, edx
mov dword [ebp - 0x2a], edx
mov word [ebp - 0x26], dx
call fcn.68911060
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x44], 0x210
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0x210
cmp dword [ebp + 8], 0xffffffff
jne 0x6891644b
push 6
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x6891693f
mov edx, dword [ebp + 0x14]
and edx, 7
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 4
ja case.0x6891645d.3
mov eax, dword [ebp - 0x54]
jmp dword [eax*4 + 0x68916948]
jmp 0x6891647a
jmp 0x6891647a
jmp 0x6891647a
jmp 0x6891647a
push 0x57
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x6891693f
mov ecx, 2
imul ecx, ecx, 0
xor edx, edx
mov word [ebp + ecx - 0x268], dx
cmp dword [ebp - 0x10], 0
je 0x689164c2
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
call sub.kernel32.dll_HeapReAlloc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x689164ba
mov dword [ebp - 8], 8
jmp 0x689168e8
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
jmp 0x689164e6
mov ecx, dword [ebp - 0x44]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x689164e6
mov dword [ebp - 8], 8
jmp 0x689168e8
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntext.dll_NtQueryObject]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x80000005
jne 0x6891650e
jmp 0x6891648c
cmp dword [ebp - 0x18], 0
jge 0x68916528
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
mov dword [ebp - 8], eax
jmp 0x689168e8
jmp 0x6891652f
cmp dword [ebp - 4], 0
je 0x68916565
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call sub.kernel32.dll_HeapReAlloc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x6891655d
mov dword [ebp - 8], 8
jmp 0x689168e8
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 4], edx
jmp 0x68916589
mov eax, dword [ebp - 0x40]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x68916589
mov dword [ebp - 8], 8
jmp 0x689168e8
push 9
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntext.dll_NtQueryInformationFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x80000005
jne 0x689165bf
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
add ecx, 8
mov dword [ebp - 0x40], ecx
jmp 0x6891652f
cmp dword [ebp - 0x18], 0
jge 0x689165d9
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ntext.dll_RtlNtStatusToDosError]
mov dword [ebp - 8], eax
jmp 0x689168e8
jmp 0x689165e0
mov eax, 2
imul eax, eax, 0
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + eax + 4]
cmp edx, 0x5c
je 0x68916601
mov dword [ebp - 8], 5
jmp 0x689168e8
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
mov edx, dword [ebp - 4]
cmp dword [edx], ecx
jb 0x6891661a
mov dword [ebp - 8], 0xa1
jmp 0x689168e8
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx]
add eax, 2
mov word [ebp - 0x36], ax
mov dx, word [ebp - 0x36]
mov word [ebp - 0x38], dx
mov eax, dword [ebp + 0x14]
and eax, 2
je 0x68916660
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], ecx
movzx edx, word [ebp - 0x38]
sub edx, 2
mov word [ebp - 0x22], dx
mov ax, word [ebp - 0x22]
mov word [ebp - 0x24], ax
jmp 0x689166da
mov ecx, dword [ebp + 0x14]
and ecx, 4
je 0x6891666a
jmp 0x689166da
mov edx, dword [ebp + 0x14]
and edx, 1
je 0x68916693
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x38]
call fcn.68916170
test eax, eax
jne 0x68916691
call sub.kernel32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x689168e8
jmp 0x689166b2
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x38]
call fcn.689160c0
test eax, eax
jne 0x689166b2
call sub.kernel32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x689168e8
lea eax, [ebp - 0x268]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x268]
push ecx
call sub.ntext.dll_wcslen
add esp, 4
lea edx, [eax + eax - 2]
mov word [ebp - 0x22], dx
mov ax, word [ebp - 0x22]
mov word [ebp - 0x24], ax
mov ecx, dword [ebp + 0x14]
and ecx, 8
jne 0x68916871
movzx edx, word [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov eax, 2
imul eax, eax, 0
movzx ecx, word [ebp + eax - 0x268]
test ecx, ecx
jne 0x6891675b
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x38]
call fcn.689160c0
test eax, eax
jne 0x68916745
call sub.kernel32.dll_GetLastError
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 8
jne 0x68916726
jmp 0x689168e8
lea edx, [ebp - 0x268]
lea ecx, [ebp - 0x38]
call fcn.68916170
test eax, eax
jne 0x68916745
call sub.kernel32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x689168e8
lea edx, [ebp - 0x268]
push edx
call sub.ntext.dll_wcslen
add esp, 4
lea eax, [eax + eax - 2]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx + 0x400]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x68916791
mov dword [ebp - 8], 8
jmp 0x689168e8
mov ecx, dword [ebp - 0x50]
shr ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x268]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.ntext.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x1c]
push edx
call sub.ntext.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax]
shr ecx, 1
xor edx, edx
mov eax, dword [ebp - 0xc]
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sym.kernelbase.dll_GetLongPathNameW
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x68916808
call sub.kernel32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x689168e8
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp - 0x48]
jb 0x6891684b
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
shl eax, 1
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
call sub.kernel32.dll_HeapReAlloc
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x68916843
mov dword [ebp - 8], 8
jmp 0x689168e8
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xc], eax
jmp 0x6891686a
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x4c]
shl edx, 1
sub edx, dword [ebp - 0x1c]
mov word [ebp - 0x2a], dx
mov ax, word [ebp - 0x2a]
mov word [ebp - 0x2c], ax
jmp 0x6891686f
jmp 0x689167df
jmp 0x6891688c
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 4]
mov ax, word [edx]
mov word [ebp - 0x2a], ax
mov cx, word [ebp - 0x2a]
mov word [ebp - 0x2c], cx
movzx edx, word [ebp - 0x24]
movzx eax, word [ebp - 0x2c]
add edx, eax
shr edx, 1
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x30]
ja 0x689168ae
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
jmp 0x689168e8
movzx eax, word [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.ntext.dll_memcpy
add esp, 0xc
movzx eax, word [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
movzx edx, word [ebp - 0x24]
add edx, dword [ebp + 0xc]
push edx
call sub.ntext.dll_memcpy
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp + 0xc]
mov word [edx + ecx*2], ax
cmp dword [ebp - 4], 0
je 0x689168fd
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call sub.kernel32.dll_HeapFree
cmp dword [ebp - 0x10], 0
je 0x68916912
mov edx, dword [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_HeapFree
cmp dword [ebp - 0xc], 0
je 0x68916927
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
call sub.kernel32.dll_HeapFree
cmp dword [ebp - 8], 0
je 0x6891693c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x6891693f
mov eax, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret 0x10