Function at 0x1009556
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
xor edi, edi
push 0x10d
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], 1
call esi
mov dword [ebp - 4], eax
mov dword [esp], 0x125
call esi
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 4], edi
je 0x100993f
cmp eax, edi
je 0x100993f
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [eax], edi
cmp word [esi + 4], 0x5c
push 3
mov eax, esi
pop ebx
lea edx, [eax + 2]
jne 0x10095e9
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10095b5
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x100961b
cmp word [esi + ebx*2], 0x5c
jne 0x100961b
mov eax, esi
inc ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10095d5
sub eax, edx
sar eax, 1
cmp ebx, eax
jb 0x10095c8
jmp 0x100961b
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10095e9
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x100961b
cmp word [esi + ebx*2], 0x2f
jne 0x100961b
mov eax, esi
inc ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1009609
sub eax, edx
sar eax, 1
cmp ebx, eax
jb 0x10095fc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1009620
sub eax, edx
sar eax, 1
cmp ebx, eax
jae 0x1009969
movzx eax, word [esi + ebx*2]
cmp ax, 0x5c
je 0x100964a
cmp ax, 0x2f
jne 0x10098d2
push 0x10d
push 0
push dword [ebp - 4]
call sub.msvcrt.dll_memset
push 0x125
push 0
push dword [ebp - 0x14]
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
add esp, 0x18
cmp dword [ebp - 0xc], 0
stosd dword es:[edi], eax
je 0x1009682
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea eax, [ebx + ebx + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10098f3
test ebx, ebx
jbe 0x10096af
mov ecx, esi
sub ecx, eax
mov edx, ebx
mov si, word [ecx + eax]
mov word [eax], si
inc eax
inc eax
dec edx
jne 0x10096a3
mov eax, dword [ebp - 0xc]
xor ecx, ecx
xor edi, edi
push edi
mov word [eax + ebx*2], cx
push edi
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
push edi
push edi
push edi
push 1
push 7
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x38], eax
push edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x80
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], 0x42
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov esi, eax
cmp esi, edi
jl 0x100992c
mov edi, dword [ebp - 0x14]
push 0x2e
push 0x125
push edi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x18], 1
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
test esi, esi
jl 0x100991f
mov eax, dword [edi + 0x18]
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
xor eax, eax
pop ecx
cmp esi, eax
je 0x1009900
cmp dword [edi + 0x18], eax
jbe 0x1009769
lea ecx, [edi + 0x1c]
mov dx, word [ecx]
mov word [esi + eax*2], dx
inc eax
inc ecx
inc ecx
cmp eax, dword [edi + 0x18]
jb 0x100975a
mov eax, dword [edi + 0x18]
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push 0x15
push 0x10d
push dword [ebp - 4]
mov dword [edi + eax*8], esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jl 0x100982c
mov edi, dword [ebp - 4]
add edi, 4
mov ecx, esi
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10097cc
test dx, dx
je 0x10097c8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10097cc
add eax, 4
add ecx, 4
test dx, dx
jne 0x10097a6
xor eax, eax
jmp 0x10097d1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100981d
mov eax, dword [ebp - 4]
mov eax, dword [eax]
lea eax, [eax + eax + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
je 0x100990e
mov esi, dword [ebp - 4]
xor ecx, ecx
cmp dword [esi], ecx
jbe 0x1009807
mov edx, edi
mov di, word [edx]
mov word [eax + ecx*2], di
inc ecx
inc edx
inc edx
cmp ecx, dword [esi]
jb 0x10097f9
mov ecx, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
mov dword [edx + ecx*8 + 4], eax
jmp 0x1009836
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
and dword [ecx + eax*8 + 4], 0
jmp 0x1009836
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
and dword [edi + eax*8 + 4], 0
mov eax, dword [ebp + 0x10]
inc dword [eax]
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + ebx*2]
cmp ax, 0x5c
jne 0x100987b
mov eax, ecx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100984d
jmp 0x1009871
mov eax, dword [ebp + 8]
cmp word [eax + ebx*2], 0x5c
jne 0x10098ba
inc ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1009867
sub eax, edx
sar eax, 1
cmp ebx, eax
jb 0x1009859
jmp 0x10098ba
cmp ax, 0x2f
jne 0x10098ba
mov eax, ecx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1009886
sub eax, edx
sar eax, 1
cmp ebx, eax
jae 0x10098ba
mov esi, dword [ebp + 8]
cmp word [esi + ebx*2], 0x2f
jne 0x10098ba
mov eax, esi
inc ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10098a8
sub eax, edx
sar eax, 1
cmp ebx, eax
jb 0x100989b
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10098c0
sub eax, edx
sar eax, 1
cmp ebx, eax
je 0x1009950
mov esi, dword [ebp + 8]
mov eax, esi
inc ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10098db
sub eax, edx
sar eax, 1
cmp ebx, eax
jb 0x1009636
jmp 0x100994a
push 8
call fcn.0100e412
and dword [ebp - 8], 0
jmp 0x1009949
push 8
call fcn.0100e412
and dword [ebp - 8], 0
pop ecx
jmp 0x1009950
push esi
call dword [sym.imp.msvcrt.dll_free]
push 8
call fcn.0100e412
pop ecx
jmp 0x1009907
push 0x40002848
call fcn.0100e4fd
push esi
jmp 0x1009917
push 0x40002848
call fcn.0100e4fd
push esi
call fcn.0100e412
pop ecx
jmp 0x1009946
push 8
call fcn.0100e412
mov dword [ebp - 8], edi
pop ecx
cmp dword [ebp - 0x18], 0
je 0x1009959
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x1009969
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 4]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc