Function at 0x4157aa
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push ebx
push esi
push edi
push 0x4021
push 7
lea eax, [ebp - 0x38]
mov byte [ebp - 1], cl
push eax
lea eax, [ebp + 0x20]
mov edi, edx
push eax
push 0x100001
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], edi
push eax
call dword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
jne 0x415944
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0x24], eax
lea eax, [ebp - 0x14]
mov dword [ebp + 0x28], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
add dword [ebp - 0x20], 0xd71bc000
lea eax, [ebp - 0x2b0]
adc dword [ebp - 0x1c], 0xfffffa7f
xor ecx, ecx
push ecx
push ecx
push 0xff
push 0x25
push 0x270
push eax
lea eax, [ebp - 0x38]
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_ZwQueryDirectoryFile]
test eax, eax
jne 0x41593b
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x274]
mov word [ebp - 0x12], ax
mov word [ebp - 0x14], ax
lea ecx, [ecx - 0x10]
call fcn.0043cad2
add eax, 0x10
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
movzx eax, word [ebp - 0x14]
shr eax, 1
push eax
push dword [ebp - 0x10]
call fcn.0043c99e
mov esi, dword [ebp - 8]
test ebx, ebx
je 0x4158a4
push dword [ebp + 0x1c]
lea eax, [esi + edi*2]
push 0
push eax
push 0x9479
call ebx
push dword [ebp + 0x1c]
push 0
push 0
push 0x948e
call ebx
test eax, eax
jne 0x415933
test dword [ebp - 0x278], 0x1f00
jne 0x415a15
test byte [ebp - 0x278], 0x10
je 0x415956
push 0x5c
lea ecx, [ebp - 8]
call fcn.0043c971
mov edx, dword [ebp - 0x274]
lea ecx, [ebp - 0x248]
call fcn.0044cd96
test al, al
je 0x4158eb
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
jmp 0x415a18
sub esp, 0x18
lea esi, [ebp + 0x20]
push 6
pop ecx
mov edi, esp
push dword [ebp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
lea ecx, [esi - 0x10]
mov edi, esp
call fcn.0043cad2
mov cl, byte [ebp - 1]
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp - 0x24]
mov edx, edi
call fcn.004157aa
add esp, 0x30
cmp eax, 0x4c7
jne 0x415a15
lea ecx, [esi - 0x10]
call fcn.0043d912
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043d912
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0x14]
push eax
call fcn.00435c44
cmp byte [ebp - 0x3c], 0
je 0x415a15
cmp dword [ebp - 0x284], 0
jne 0x415a15
mov eax, dword [ebp - 0x288]
add eax, 0xfffff000
cmp eax, 0x31ff000
ja 0x415a15
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x2a4]
jb 0x415a15
mov eax, dword [ebp - 0x20]
ja 0x4159b9
cmp eax, dword [ebp - 0x2a8]
jbe 0x415a15
cmp ecx, dword [ebp - 0x294]
jb 0x415a15
ja 0x4159cb
cmp eax, dword [ebp - 0x298]
jbe 0x415a15
mov ecx, esi
call fcn.0044da75
test eax, eax
jne 0x415a15
mov dl, byte [ebp - 1]
mov ecx, esi
call fcn.00415711
test al, al
je 0x415a15
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x288]
add dword [ecx], eax
mov eax, dword [ebp - 0x284]
adc dword [ecx + 4], eax
lea eax, [ebp - 8]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004316c8
test ebx, ebx
je 0x415a15
push dword [ebp + 0x1c]
push esi
push 0
push 0x9089
call ebx
lea ecx, [esi - 0x10]
call fcn.0043d912
xor ecx, ecx
lea eax, [ebp - 0x2b0]
push ecx
push ecx
push 0xff
push 0x25
push 0x270
push eax
lea eax, [ebp - 0x38]
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_ZwQueryDirectoryFile]
test eax, eax
je 0x415846
jmp 0x41593b