Function at 0x10a1a9e
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
xor edi, edi
cmp word [esi + 0x38], di
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
je 0x10a1ad9
push 0x298
push 1
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
mov ebx, dword [ebp + 0xc]
pop ecx
pop ecx
mov dword [ebx], eax
jne 0x10a1af4
or dword [ebp - 4], 0xffffffff
jmp 0x10a1ae7
mov eax, dword [esi + 0x3c]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov word [esi + 0x38], 1
cmp dword [ebx], edi
jne 0x10a1af4
or ax, 0xffff
jmp 0x10a1e1e
mov eax, dword [ebx]
lea ecx, [eax + 0x18]
mov dword [eax + 0x10], ecx
mov edx, dword [ebx]
mov edi, dword [edx + 0x10]
xor eax, eax
cmp word [ebp - 4], ax
mov ecx, 0xa0
rep stosd dword es:[edi], eax
jne 0x10a1d11
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x34]
mov cx, word [ebp + 0x14]
mov dword [eax], edi
mov eax, dword [ebx]
mov word [eax + 4], cx
mov ecx, dword [ebx]
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x14], eax
xor ecx, ecx
mov word [esi + 0x248], cx
mov word [esi + 0x25a], cx
mov word [esi + 0x25e], cx
mov word [esi + 0x266], cx
mov word [esi + 0x268], cx
mov word [esi + 0x240], 1
mov word [edx + 0x2e], cx
mov ecx, dword [esi + 0x254]
test ecx, ecx
je 0x10a1b73
and word [ecx], 0
and word [esi + 0x258], 0
mov dword [esi + 0x278], 2
movzx ecx, byte [eax]
dec ecx
je 0x10a1cd7
sub ecx, 7
je 0x10a1bc7
dec ecx
je 0x10a1ba6
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0xfffffe02
jmp 0x10a1cf5
test byte [eax + 0x41], 0x40
push dword [ebp + 0x14]
push eax
push dword [ebx]
push edi
je 0x10a1bbd
call fcn.010a18d3
jmp 0x10a1c8f
call fcn.010a123f
jmp 0x10a1c8f
mov cl, byte [eax + 0x2a]
test cl, cl
je 0x10a1c97
cmp cl, 1
je 0x10a1c84
cmp cl, 2
je 0x10a1c04
cmp cl, 3
je 0x10a1c84
jbe 0x10a1c07
cmp cl, 6
jbe 0x10a1c04
cmp cl, 7
jne 0x10a1c07
cmp dword [ebp + 0x14], 1
jne 0x10a1c04
mov word [edx + 0x8e], 1
or dword [esi], 0xffffffff
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
test ch, 0x40
jne 0x10a1d9c
xor edx, edx
inc edx
cmp dword [ebp + 0x14], edx
jne 0x10a1de4
cmp byte [eax + 0x2a], 0
jne 0x10a1de4
cmp byte [eax], 9
jne 0x10a1c3f
cmp word [eax + 0xa0], 0
jne 0x10a1da7
cmp word [ebp - 4], 0
jne 0x10a1da7
mov edi, dword [ebx]
mov edi, dword [edi + 0x10]
cmp dword [edi], 0xffffffff
je 0x10a1da7
mov edi, dword [esi + 4]
mov edi, dword [edi + 0x5c]
test byte [edi + 0x10], 0x10
je 0x10a1da7
and dword [ebp - 8], 0
mov edi, 0x800
test edi, ecx
mov dword [ebp + 0xc], edx
je 0x10a1d26
mov dword [ebp - 8], edx
jmp 0x10a1d6d
push dword [ebp + 0x14]
push eax
push ebx
push edi
call fcn.010ab461
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
jmp 0x10a1cdb
push dword [edi + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 1
pop ecx
ja 0x10a1cc7
mov eax, dword [ebp - 8]
cmp byte [eax + 0x30], 6
jne 0x10a1cb6
mov dword [ebp - 4], 0xfffffe38
and dword [esi + 0x278], 0
cmp word [ebp - 4], 0
jne 0x10a1d0c
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebx]
push edi
call fcn.010a0d44
jmp 0x10a1c8f
and dword [ebp - 4], 0
cmp word [ebp - 4], 0
je 0x10a1c07
mov esi, dword [ebp + 8]
cmp word [ebp - 4], 0xfe10
je 0x10a1c0a
mov eax, dword [ebx]
cmp dword [esi + 0x3c], eax
jne 0x10a1d16
and word [esi + 0x38], 0
mov edi, dword [ebx]
push 6
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x10a1d1e
mov eax, dword [ebp + 0x10]
jmp 0x10a1ce6
mov eax, dword [ebp + 0x10]
jmp 0x10a1ce9
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp + 0x10]
jmp 0x10a1c0a
test cl, 0x10
lea ecx, [ebp + 8]
je 0x10a1d36
xor eax, eax
push eax
push eax
push ecx
push eax
jmp 0x10a1d41
mov eax, dword [eax + 0x7c]
push 0
push 0
push ecx
push dword [eax + 0x18]
push dword [esi + 0xc]
push esi
call fcn.010a7a67
test ax, ax
jne 0x10a1d6d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, eax
jne 0x10a1d60
and dword [ebp + 0xc], 0
push esi
call fcn.010a7422
cmp word [ebp + 0xc], 0
je 0x10a1da4
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push eax
push eax
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
push 0x9c040
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10a1da4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0xfffffeb5
cmp dword [ebp + 0x14], 1
jne 0x10a1de4
jmp 0x10a1da7
mov eax, dword [ebp + 0x10]
cmp byte [eax + 0x2a], 0
jne 0x10a1de4
xor ecx, ecx
cmp byte [eax], 9
jne 0x10a1dbd
cmp word [eax + 0xa0], cx
jne 0x10a1de4
cmp word [ebp - 4], cx
jne 0x10a1de4
test byte [eax + 0x41], 2
je 0x10a1e1a
push ecx
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
push ecx
push ecx
push ecx
push ecx
push 0x900c4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp word [ebp - 4], 0xfeb5
je 0x10a1e1a
cmp word [ebp - 4], 0
je 0x10a1e1a
cmp word [ebp - 4], 0xfe10
je 0x10a1e1a
mov eax, dword [ebx]
cmp dword [esi + 0x3c], eax
jne 0x10a1e12
and word [esi + 0x38], 0
mov edi, dword [ebx]
push 6
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x10a1e1a
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ax, word [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10