Function at 0x415320
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 0x4154ba
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 0x4154b1
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.0043baa0
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.0043b96c
mov esi, dword [ebp - 8]
test ebx, ebx
je 0x41541a
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 0x4154a9
test dword [ebp - 0x278], 0x1f00
jne 0x41558b
test byte [ebp - 0x278], 0x10
je 0x4154cc
push 0x5c
lea ecx, [ebp - 8]
call fcn.0043b93f
mov edx, dword [ebp - 0x274]
lea ecx, [ebp - 0x248]
call fcn.0044bd57
test al, al
je 0x415461
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
jmp 0x41558e
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.0043baa0
mov cl, byte [ebp - 1]
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp - 0x24]
mov edx, edi
call fcn.00415320
add esp, 0x30
cmp eax, 0x4c7
jne 0x41558b
lea ecx, [esi - 0x10]
call fcn.0043c924
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0043c924
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00434cfa
cmp byte [ebp - 0x3c], 0
je 0x41558b
cmp dword [ebp - 0x284], 0
jne 0x41558b
mov eax, dword [ebp - 0x288]
add eax, 0xfffff000
cmp eax, 0x31ff000
ja 0x41558b
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x2a4]
jb 0x41558b
mov eax, dword [ebp - 0x20]
ja 0x41552f
cmp eax, dword [ebp - 0x2a8]
jbe 0x41558b
cmp ecx, dword [ebp - 0x294]
jb 0x41558b
ja 0x415541
cmp eax, dword [ebp - 0x298]
jbe 0x41558b
mov ecx, esi
call fcn.0044ca36
test eax, eax
jne 0x41558b
mov dl, byte [ebp - 1]
mov ecx, esi
call fcn.00415287
test al, al
je 0x41558b
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.00430953
test ebx, ebx
je 0x41558b
push dword [ebp + 0x1c]
push esi
push 0
push 0x9089
call ebx
lea ecx, [esi - 0x10]
call fcn.0043c924
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 0x4153bc
jmp 0x4154b1