Function at 0x10b4543
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
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 0x10b4580
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 0x10b459b
or dword [ebp - 4], 0xffffffff
jmp 0x10b458e
mov eax, dword [esi + 0x3c]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov word [esi + 0x38], 1
cmp dword [ebx], edi
jne 0x10b459b
or ax, 0xffff
jmp 0x10b48c5
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 0x10b47b8
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 0x10b461a
and word [ecx], 0
and word [esi + 0x258], 0
mov dword [esi + 0x278], 2
movzx ecx, byte [eax]
dec ecx
je 0x10b477e
sub ecx, 7
je 0x10b466e
dec ecx
je 0x10b464d
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0xfffffe02
jmp 0x10b479c
test byte [eax + 0x41], 0x40
push dword [ebp + 0x14]
push eax
push dword [ebx]
push edi
je 0x10b4664
call fcn.010b4371
jmp 0x10b4736
call fcn.010b3b28
jmp 0x10b4736
mov cl, byte [eax + 0x2a]
test cl, cl
je 0x10b473e
cmp cl, 1
je 0x10b472b
cmp cl, 2
je 0x10b46ab
cmp cl, 3
je 0x10b472b
jbe 0x10b46ae
cmp cl, 6
jbe 0x10b46ab
cmp cl, 7
jne 0x10b46ae
cmp dword [ebp + 0x14], 1
jne 0x10b46ab
mov word [edx + 0x8e], 1
or dword [esi], 0xffffffff
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
test ch, 0x40
jne 0x10b4843
xor edx, edx
inc edx
cmp dword [ebp + 0x14], edx
jne 0x10b488b
cmp byte [eax + 0x2a], 0
jne 0x10b488b
cmp byte [eax], 9
jne 0x10b46e6
cmp word [eax + 0xa0], 0
jne 0x10b484e
cmp word [ebp - 4], 0
jne 0x10b484e
mov edi, dword [ebx]
mov edi, dword [edi + 0x10]
cmp dword [edi], 0xffffffff
je 0x10b484e
mov edi, dword [esi + 4]
mov edi, dword [edi + 0x5c]
test byte [edi + 0x10], 0x10
je 0x10b484e
and dword [ebp - 8], 0
mov edi, 0x800
test edi, ecx
mov dword [ebp + 0xc], edx
je 0x10b47cd
mov dword [ebp - 8], edx
jmp 0x10b4814
push dword [ebp + 0x14]
push eax
push ebx
push edi
call fcn.010bf055
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
jmp 0x10b4782
push dword [edi + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 1
pop ecx
ja 0x10b476e
mov eax, dword [ebp - 8]
cmp byte [eax + 0x30], 6
jne 0x10b475d
mov dword [ebp - 4], 0xfffffe38
and dword [esi + 0x278], 0
cmp word [ebp - 4], 0
jne 0x10b47b3
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebx]
push edi
call fcn.010b34df
jmp 0x10b4736
and dword [ebp - 4], 0
cmp word [ebp - 4], 0
je 0x10b46ae
mov esi, dword [ebp + 8]
cmp word [ebp - 4], 0xfe10
je 0x10b46b1
mov eax, dword [ebx]
cmp dword [esi + 0x3c], eax
jne 0x10b47bd
and word [esi + 0x38], 0
mov edi, dword [ebx]
push 6
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x10b47c5
mov eax, dword [ebp + 0x10]
jmp 0x10b478d
mov eax, dword [ebp + 0x10]
jmp 0x10b4790
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp + 0x10]
jmp 0x10b46b1
test cl, 0x10
lea ecx, [ebp + 8]
je 0x10b47dd
xor eax, eax
push eax
push eax
push ecx
push eax
jmp 0x10b47e8
mov eax, dword [eax + 0x7c]
push 0
push 0
push ecx
push dword [eax + 0x18]
push dword [esi + 0xc]
push esi
call fcn.010bab05
test ax, ax
jne 0x10b4814
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, eax
jne 0x10b4807
and dword [ebp + 0xc], 0
push esi
call fcn.010ba429
cmp word [ebp + 0xc], 0
je 0x10b484b
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 0x10b484b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0xfffffeb5
cmp dword [ebp + 0x14], 1
jne 0x10b488b
jmp 0x10b484e
mov eax, dword [ebp + 0x10]
cmp byte [eax + 0x2a], 0
jne 0x10b488b
xor ecx, ecx
cmp byte [eax], 9
jne 0x10b4864
cmp word [eax + 0xa0], cx
jne 0x10b488b
cmp word [ebp - 4], cx
jne 0x10b488b
test byte [eax + 0x41], 2
je 0x10b48c1
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 0x10b48c1
cmp word [ebp - 4], 0
je 0x10b48c1
cmp word [ebp - 4], 0xfe10
je 0x10b48c1
mov eax, dword [ebx]
cmp dword [esi + 0x3c], eax
jne 0x10b48b9
and word [esi + 0x38], 0
mov edi, dword [ebx]
push 6
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
jmp 0x10b48c1
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