Function at 0x1018605a
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e0
mov eax, dword [0x101dc354]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x30], eax
push esi
mov esi, ecx
mov dword [ebp - 0x20], eax
push edi
mov byte [ebp - 0x21], bl
mov dword [ebp - 0x14], 0x32
mov dword [ebp - 0x10], 0x34
mov dword [ebp - 0xc], 0x10078dbc
cmp byte [0x101dee5c], bl
je 0x10186292
cmp dword [ebp + 8], 2
mov edi, 0x498
jne 0x1018613a
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
cdq
idiv edi
mov edx, dword [ebp - 0x30]
cmp ebx, eax
jae 0x10186292
cmp dword [ecx + 0x490], edx
je 0x101860d4
inc ebx
add ecx, edi
jmp 0x101860bf
lea edi, [ecx + 0x7c]
mov ecx, 0x101db024
call fcn.101d0aaf
test al, 0x10
je 0x101860fa
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push edi
push eax
push 0x10078e18
call fcn.10178d7c
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.100b637d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x21]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10180cf5
cmp byte [ebp - 0x21], 0
je 0x10186129
int3
lea eax, [ebx + 1]
mov ecx, esi
push eax
push ebx
call fcn.1017dde4
jmp 0x10186292
push edi
lea eax, [ebp - 0x4dc]
push ebx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
pop ecx
pop ecx
lea ecx, [ebp - 0x4dc]
call fcn.1017932c
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10180143
cmp dword [eax], ebx
jl 0x10186292
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
cdq
idiv edi
lea esi, [ecx - 0x498]
imul eax, eax, 0x498
push 9
push 0x418
add esi, eax
mov dword [ebp - 0x28], esi
lea eax, [esi + 0x78]
push eax
mov dword [ebp - 0x30], eax
lea edi, [esi + 0x7c]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], edi
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jns 0x101861c5
push 6
pop ecx
mov esi, 0x1007c600
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x30]
push 0x18
pop eax
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x28]
mov dword [ecx], eax
jmp 0x101861c8
mov eax, dword [esi + 0x78]
push ebx
push esi
shr eax, 1
xor ecx, ecx
push 0x1e
push ebx
mov word [esi + eax*2 + 0x7e], cx
call dword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlCaptureStackBackTrace]
lea edx, [ebp - 0x40]
mov word [esi + 0x494], ax
mov ecx, edi
call fcn.100b637d
lea eax, [ebp - 0x14]
xor ebx, ebx
mov dword [ebp - 0x2c], eax
inc ebx
lea eax, [ebp - 0x21]
mov dword [ebp - 0x28], ebx
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10180cf5
cmp dword [ebp + 8], 0
jne 0x10186243
mov eax, dword [0x101dee60]
cmp eax, dword [ebp - 0x20]
jne 0x1018621b
int3
mov ecx, 0x101db024
call fcn.101d0aaf
test al, 0x10
je 0x1018623e
lea eax, [ebp - 0x20]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push edi
push eax
push 0x10078df0
call fcn.10178d7c
mov eax, dword [ebp - 0x20]
jmp 0x10186285
cmp dword [ebp + 8], ebx
jne 0x1018628b
mov eax, dword [0x101dee60]
cmp eax, dword [ebp - 0x20]
jne 0x10186253
int3
cmp eax, dword [ebp + 0x10]
jne 0x10186259
int3
mov ecx, 0x101db024
call fcn.101d0aaf
test al, 0x10
je 0x10186282
lea eax, [ebp + 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x28]
push edi
push eax
lea eax, [ebp - 0x34]
push eax
push ecx
call fcn.10178db5
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x490], eax
cmp byte [ebp - 0x21], 0
je 0x10186292
int3
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b88c0
leave
ret 0xc