Function at 0x100b9edc
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe8], eax
push ebx
push esi
push edi
push 0x3c
pop eax
mov word [ebp - 0xac], ax
lea edi, [ebp - 0xc0]
push 0x3e
pop eax
mov word [ebp - 0xaa], ax
mov esi, 0x400
xor eax, eax
mov dword [ebp - 0xc4], 0x18
stosd dword es:[edi], eax
push 6
pop ecx
mov ebx, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 0xf0], edx
mov edx, dword [ebp + 0x10]
and dword [ebp - 0x50], 0
stosd dword es:[edi], eax
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xa8], 0x10023a9c
stosd dword es:[edi], eax
mov dword [ebp - 0xd0], esi
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0xe0], eax
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x110]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x150]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x138]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x11c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0xf0]
mov edi, dword [ebp - 0xe8]
and dword [eax], 0
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test edx, edx
je 0x100b9fb9
mov edi, edx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x4020
lea eax, [ebp - 0xac]
mov dword [ebp - 0xb8], 0x40
mov dword [ebp - 0xbc], eax
lea ecx, [ebp - 0x50]
push 7
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xc4]
push eax
push 0x120089
call fcn.100e85a6
push eax
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov ebx, eax
test ebx, ebx
js 0x100ba05c
push 5
push 0x18
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ebx, eax
test ebx, ebx
js 0x100ba05c
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
test ecx, ecx
jg 0x100ba02f
jl 0x100ba026
test eax, eax
jae 0x100ba02d
mov ebx, 0xc0000095
jmp 0x100ba062
test ecx, ecx
ja 0x100ba03f
jb 0x100ba037
cmp eax, esi
jae 0x100ba03f
mov esi, eax
mov dword [ebp - 0xd0], eax
push esi
lea ecx, [ebp - 0xe0]
call fcn.100e69db
mov ecx, dword [ebp - 0x60]
test eax, eax
mov eax, dword [ebp - 0x64]
jne 0x100ba062
mov ebx, 0xc0000017
jmp 0x100ba062
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
xor edi, edi
xor dh, dh
and dword [ebp - 0xf8], edi
xor dl, dl
mov dword [ebp - 0xdc], edi
mov byte [ebp - 0xc8], dh
mov byte [ebp - 0xc6], dl
test ebx, ebx
js 0x100ba5cc
mov dword [ebp - 0xec], 2
mov dword [ebp - 0x12c], 8
mov dword [ebp - 0x128], 0x20
mov dword [ebp - 0x124], 0x13
mov dword [ebp - 0xf4], fcn.10170ff0
test dh, dh
jne 0x100ba626
test dl, dl
jne 0x100ba626
xor ebx, ebx
mov byte [ebp - 0xc5], bl
cmp ecx, ebx
ja 0x100ba0dc
jb 0x100ba0fa
cmp eax, esi
jbe 0x100ba0fa
mov edx, edi
sub edx, dword [ebp - 0xf8]
add edx, esi
cmp ecx, ebx
ja 0x100ba107
jb 0x100ba0f0
cmp eax, edx
jae 0x100ba107
mov esi, edx
sub esi, eax
mov dword [ebp - 0xd0], esi
mov byte [ebp - 0xc8], 1
mov eax, ebx
mov ecx, ebx
jmp 0x100ba10b
sub eax, edx
sbb ecx, ebx
push ebx
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
push esi
mov esi, dword [ebp - 0xe0]
lea eax, [ebp - 0x74]
push esi
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x50]
mov dword [ebp - 0x78], ecx
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ebx, eax
mov dword [ebp - 0xfc], esi
mov eax, dword [ebp - 0x70]
xor cl, cl
mov esi, dword [ebp - 0xd0]
xor dl, dl
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x100], esi
mov byte [ebp - 0xc7], cl
mov byte [ebp - 0xc9], dl
test ebx, ebx
js 0x100ba599
mov dl, byte [ebp - 0xc5]
test cl, cl
jne 0x100ba523
test dl, dl
jne 0x100ba523
mov ecx, dword [ebp - 0xec]
cmp eax, ecx
jb 0x100ba18b
sub eax, ecx
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x174]
push eax
push 0xa
push ecx
push ecx
lea edx, [ebp - 0x104]
call fcn.10170ce0
cmp byte [ebp - 0xc8], 0
mov ebx, eax
mov ecx, dword [ebp - 0x104]
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x120], ecx
je 0x100ba461
test eax, eax
jne 0x100ba461
lea esi, [ebp - 0x174]
lea edi, [ebp - 0x110]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x110]
mov byte [ebp - 0xc9], 1
test ebx, ebx
js 0x100ba507
test eax, eax
je 0x100ba221
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x150]
push eax
push 0x3b
push ecx
push ecx
xor ecx, ecx
lea edx, [ebp - 0x110]
inc ecx
call fcn.10170ce0
mov ebx, eax
mov eax, dword [ebp - 0x110]
test ebx, ebx
js 0x100ba507
mov edx, dword [ebp - 0x150]
test edx, edx
je 0x100ba4d6
cmp edx, eax
jae 0x100ba4d6
mov esi, dword [ebp - 0x12c]
lea edi, [ebp - 0x28]
xor eax, eax
mov ecx, esi
rep stosd dword es:[edi], eax
cmp edx, dword [ebp - 0x14c]
jae 0x100ba5bc
mov edi, dword [ebp - 0x128]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x148]
push edi
push ecx
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x9c]
mov byte [eax + edx], 0
push ecx
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x8c]
push ecx
push 0x10023ae8
push eax
call fcn.100b95db
add esp, 0x24
cmp eax, 6
jne 0x100ba4d6
mov eax, dword [ebp - 0x124]
and dword [ebp - 0xe4], 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x28]
mov ecx, eax
mov dword [ebp - 0x4c], 9
mov dword [ebp - 0x48], 0xa
mov dword [ebp - 0x44], 0x10023adc
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x3c], esi
lea edx, [ecx + 1]
mov dword [ebp - 0x38], 0x10023b20
mov dword [ebp - 0x30], 0x14
mov dword [ebp - 0x2c], 0x10023b0c
mov dword [ebp - 0x15c], 0x12
mov dword [ebp - 0x154], 0x10023b28
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x140], edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ba31b
sub ecx, edx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x144], ecx
xor esi, esi
mov ecx, dword [ebp - 0xf4]
lea eax, [ebp - 0xe4]
push eax
push 0
push ecx
lea eax, [ebp - 0x144]
mov edx, ecx
push eax
mov ecx, edi
call fcn.1016ea32
mov ebx, eax
mov eax, dword [ebp - 0xe4]
test eax, eax
je 0x100ba364
inc esi
add edi, 0xc
cmp esi, 3
jb 0x100ba32f
test ebx, ebx
js 0x100ba507
test eax, eax
je 0x100ba4d6
mov ecx, dword [ebp - 0xf4]
lea eax, [ebp - 0xe4]
push eax
push 0
push ecx
lea eax, [ebp - 0x144]
mov edx, ecx
push eax
lea ecx, [ebp - 0x15c]
call fcn.1016ea32
mov ebx, eax
test ebx, ebx
js 0x100ba507
cmp dword [ebp - 0xe4], 0
jne 0x100ba4ae
mov eax, dword [ebp - 0xec]
lea edi, [ebp - 0x40]
push 6
mov dword [ebp - 0x164], eax
lea esi, [ebp - 0x138]
xor eax, eax
mov dword [ebp - 0x168], 1
pop ecx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x160], 0x100082e8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x11c], eax
jbe 0x100ba3f9
lea esi, [ebp - 0x168]
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x11c]
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x138], eax
jbe 0x100ba42b
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
cmp byte [eax], 0x20
jne 0x100ba422
dec edx
inc eax
sub ecx, 1
jne 0x100ba416
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edx
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10170b66
mov ebx, eax
test ebx, ebx
js 0x100ba507
lea ecx, [ebp - 0x11c]
call fcn.1009502f
lea esi, [ebp - 0x180]
lea edi, [ebp - 0x11c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x100ba4d6
mov dl, byte [ebp - 0xc9]
test dl, dl
je 0x100ba488
test eax, eax
jne 0x100ba1e6
add ecx, 2
mov byte [ebp - 0xc7], 1
mov dword [ebp - 0xf8], ecx
jmp 0x100ba1e6
test eax, eax
jne 0x100ba1e6
test dl, dl
jne 0x100ba1e6
mov eax, dword [ebp - 0x104]
inc dl
mov cl, byte [ebp - 0xc7]
mov byte [ebp - 0xc5], dl
jmp 0x100ba51b
mov ecx, dword [ebp - 0xf0]
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0xe8]
mov byte [ebp - 0xc6], 1
mov dword [ecx], eax
lea ecx, [ebp - 0x144]
call fcn.10170adb
mov ebx, eax
test ebx, ebx
js 0x100ba507
cmp byte [ebp - 0xc6], 0
jne 0x100ba507
mov eax, dword [ebp - 0x174]
lea esi, [ebp - 0x174]
mov cl, byte [ebp - 0xc7]
lea edi, [ebp - 0x104]
movsd dword es:[edi], dword [esi]
inc eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x104], eax
jmp 0x100ba515
mov eax, dword [ebp - 0x120]
mov cl, 1
mov byte [ebp - 0xc7], cl
mov dl, byte [ebp - 0xc5]
test ebx, ebx
jns 0x100ba163
test ebx, ebx
js 0x100ba58d
test dl, dl
je 0x100ba58d
mov eax, dword [ebp - 0xd0]
mul dword [ebp - 0xec]
mov esi, eax
mov dword [ebp - 0xd0], esi
test edx, edx
ja 0x100ba5c7
jb 0x100ba54e
cmp esi, 0xffffffff
ja 0x100ba5c7
lea ecx, [ebp - 0xe0]
xor ebx, ebx
call fcn.100e7dbf
cmp dword [ebp - 0x60], ebx
ja 0x100ba570
jb 0x100ba567
cmp dword [ebp - 0x64], esi
jae 0x100ba570
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0xd0], esi
push esi
lea ecx, [ebp - 0xe0]
call fcn.100e69db
mov edi, dword [ebp - 0xdc]
test eax, eax
jne 0x100ba5a1
mov ebx, 0xc0000017
jmp 0x100ba5a1
mov edi, dword [ebp - 0xdc]
mov esi, dword [ebp - 0xd0]
add edi, esi
mov dword [ebp - 0xdc], edi
mov dl, byte [ebp - 0xc6]
test ebx, ebx
js 0x100ba626
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
mov dh, byte [ebp - 0xc8]
jmp 0x100ba0ba
push 0xc00000e5
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov ebx, 0xc0000095
mov edi, dword [ebp - 0xd4]
mov esi, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xe8]
call fcn.1009502f
mov ecx, edi
call fcn.1009502f
test esi, esi
je 0x100ba5f5
mov ecx, esi
call fcn.1009502f
lea ecx, [ebp - 0x11c]
call fcn.1009502f
lea ecx, [ebp - 0xe0]
call fcn.100e7dbf
lea ecx, [ebp - 0x50]
call fcn.100e7fb0
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 0xc
mov edi, dword [ebp - 0xd4]
test ebx, ebx
js 0x100ba5d2
test dl, dl
je 0x100ba652
cmp dword [ebp - 0x138], 0
jbe 0x100ba652
mov edx, edi
lea ecx, [ebp - 0x138]
call fcn.10170adb
mov dl, byte [ebp - 0xc6]
mov ebx, eax
test ebx, ebx
js 0x100ba5d2
mov esi, dword [ebp - 0xd8]
test dl, dl
je 0x100ba677
test esi, esi
je 0x100ba677
mov edx, esi
lea ecx, [ebp - 0x11c]
call fcn.10170adb
mov ebx, eax
test ebx, ebx
jns 0x100ba5f5
jmp 0x100ba5d8