Function at 0x77c9bbd7
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [ebx + 0x1c]
cmp eax, edi
jbe 0x77c9bf14
shl eax, 0x14
xor edx, edx
div dword [ebp - 0x120]
mov ecx, dword [ebx + 0x28]
mov edi, eax
cmp edi, ecx
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0xf0], edi
jbe 0x77c93bfe
cmp edi, eax
jb 0x77ce2922
mov edx, ecx
mov dword [esi + 0x234], edi
mov dword [esi + 0x22c], ecx
mov dword [esi + 0x230], edx
xor edi, edi
jmp 0x77c9bf14
cmp byte [ebp - 0xbd], 1
jne 0x77ce29ee
mov eax, dword [ebp - 0x124]
cmp eax, dword [esi + 0x18]
je 0x77c9bf6d
jmp 0x77ce29ee
mov eax, dword [ebx + 0x104]
cmp eax, dword [ebp - 0xd0]
mov ecx, dword [ebx + 0x100]
jg 0x77c93c60
jl 0x77ce2942
cmp ecx, dword [ebp - 0xd4]
jb 0x77ce2942
cmp eax, dword [ebp - 0xdc]
jl 0x77c93c7a
jg 0x77ce2969
cmp ecx, dword [ebp - 0xe0]
ja 0x77ce2969
mov eax, dword [ebx + 0xf0]
mov ecx, dword [ebx + 0xf4]
mov edx, eax
or edx, ecx
je 0x77c93ccc
cmp dword [ebp - 0x118], eax
jne 0x77c93ccc
cmp dword [ebp - 0x114], ecx
jne 0x77c93ccc
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebx + 0xc]
jne 0x77c93ccc
mov eax, dword [ebp - 0x110]
cmp eax, dword [ebx + 0x34]
jne 0x77c93ccc
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebx + 4]
jne 0x77c93ccc
mov eax, dword [ebp - 0x130]
cmp eax, dword [esi + 0x18]
je 0x77c9c03e
mov byte [ebp - 0xb5], 0
jmp 0x77c9c03e
push dword [ebp - 0xf4]
call fcn.77c93dbb
xor edi, edi
cmp eax, edi
mov dword [ebx + 0x24], eax
jne 0x77c9bef9
jmp 0x77ce28bd
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x138], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x1000
push 8
push dword [eax + 0x18]
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x130], edi
mov byte [ebp - 0xb5], 1
mov byte [ebp - 0xbd], 0
mov dword [ebp - 0x124], edi
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xec], edi
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], edi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, edi
mov dword [ebp - 0xd8], eax
je 0x77ce27ac
cmp dword [ebp + 0x10], edi
push ebx
mov dword [ebp - 0xc8], edi
jbe 0x77c9c061
mov ecx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0x138]
xor edi, edi
push edi
push 0x40000080
push 3
push edi
lea eax, [eax + ecx*4]
push 3
mov dword [ebp - 0xcc], eax
mov eax, dword [eax]
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc4], eax
je 0x77ce2982
mov esi, dword [ebp - 0xd8]
mov ebx, 0x1000
push ebx
push edi
push esi
call sub.ntdll.dll_memset
add esp, 0xc
push edi
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [ebp - 0xf8], eax
je 0x77c9c061
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x134]
push eax
push ebx
push esi
push dword [ebp - 0xc4]
mov dword [ebp - 0x100], edi
mov dword [ebp - 0xfc], edi
call fcn.77c9bb4f
cmp dword [ebp - 0x134], 0x400
jb 0x77ce2a5b
mov eax, dword [esi + 0x30]
cmp eax, 0x48
jb 0x77ce2a5b
cmp eax, dword [esi]
ja 0x77ce2a5b
push 0x58
lea eax, [ebp - 0x5c]
push edi
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0xe4]
push eax
push 0x48
push esi
call fcn.77cb13f0
cmp eax, edi
je 0x77ce2a5b
cmp eax, 8
je 0x77ce2a5b
cmp dword [ebp - 0xe4], edi
je 0x77ce2a5b
push esi
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [esi + 0x48]
push eax
push edi
call fcn.77cb0f8b
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xe4]
add eax, 0x48
cmp dword [ebp - 0xbc], edi
mov dword [ebp - 0xf0], eax
jne 0x77ce2a5b
cmp dword [ebp - 0x10], 0x30
jb 0x77ce2a5b
cmp eax, ebx
ja 0x77ce2a5b
mov eax, dword [ebp - 0xcc]
mov ebx, dword [eax]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x2c]
add ebx, 0x70
cmp ecx, 4
jne 0x77ce27bb
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x77ce298c
cmp ecx, 4
jne 0x77ce27c9
push 0x44
mov esi, eax
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x14]
add eax, 0x110
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov ecx, 0x77ca0460
mov dx, word [eax]
cmp dx, word [ecx]
je 0x77ce27df
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0xcc]
mov edx, dword [eax]
sete cl
mov dword [edx + 0x194], ecx
mov ecx, dword [ebx + 0x20]
mov eax, dword [eax]
and ecx, 0xfffffeff
mov dword [eax + 0x14], ecx
mov eax, dword [ebx]
test ax, 0x3ff
mov dword [ebp - 0x120], eax
jne 0x77ce2a35
cmp eax, 0x400
jb 0x77ce2a35
cmp eax, 0x100000
ja 0x77ce2a35
cmp dword [ebp + 0x14], 0
jne 0x77c9c621
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0xc8]
push dword [eax + ecx*8 + 4]
push dword [eax + ecx*8]
call fcn.77ca0083
mov esi, eax
test esi, esi
mov dword [ebp - 0x128], esi
je 0x77ce29a7
mov eax, dword [ebp - 0xc4]
mov dword [esi + 0x21c], eax
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax]
cmp dword [eax + 0x194], 0
jne 0x77ce2808
cmp dword [ebx], 0x100000
ja 0x77ce2a10
cmp dword [ebx + 0xc], 0x100
ja 0x77ce2a10
mov eax, dword [ebx + 0x10]
or eax, dword [ebx + 0x14]
je 0x77c93d99
xor edi, edi
mov eax, dword [ebx + 0x24]
mov dword [esi + 0x228], eax
mov eax, dword [ebx]
mov dword [esi + 0x224], eax
test byte [ebx + 0x20], 2
jne 0x77c93bce
test byte [esi + 0x14], 2
mov eax, dword [ebx + 0x108]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x100]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 0x104]
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0xf8]
mov dword [esi + 0x20], eax
mov eax, dword [ebx + 0xfc]
mov dword [esi + 0x24], eax
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x1c], eax
je 0x77c9c57a
cmp dword [ebp - 0xc8], edi
jne 0x77c93c19
mov eax, dword [esi + 0x18]
mov byte [ebp - 0xbd], 1
mov dword [ebp - 0x124], eax
mov dword [esi + 0x18], edi
mov eax, dword [esi + 0x18]
cmp eax, 1
je 0x77c9c58c
cmp eax, 3
je 0x77c9c58c
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [eax]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0xc], ecx
cmp dword [ebp - 0xc8], edi
jne 0x77c93c3a
mov eax, dword [ebx + 0x100]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebx + 0x104]
mov dword [ebp - 0xd0], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0xec], eax
mov eax, dword [esi + 0x34]
mov esi, dword [esi + 0x18]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebx + 0x100]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebx + 0x104]
mov dword [ebp - 0xdc], eax
lea eax, [ebx + 0xf0]
mov ecx, dword [eax]
mov dword [ebp - 0x118], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x114], ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebx + 0x34]
mov dword [ebp - 0x110], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x10c], ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
mov dword [ebp - 0x130], esi
je 0x77ce2937
cmp esi, edi
je 0x77c93ccc
cmp esi, 2
je 0x77c93ccc
push dword [ebp - 0xf8]
call dword [sym.imp.ntdll.dll_NtClose]
inc dword [ebp - 0xc8]
mov eax, dword [ebp - 0xc8]
cmp eax, dword [ebp + 0x10]
jb 0x77c9bc9b
xor edi, edi
cmp dword [ebp + 0x14], edi
mov esi, dword [ebp - 0xbc]
jne 0x77c9c07f
cmp byte [ebp - 0xb5], 1
jne 0x77c9c07f
cmp dword [ebp + 0x10], 1
ja 0x77ce2a88
push dword [ebp - 0xd8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.77cd6011
leave
ret 0x10
cmp byte [ebp - 0xbd], 1
jne 0x77c9bf70
jmp 0x77ce29ee
mov eax, dword [ebp - 0x4c]
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x2c]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x48], eax
jmp 0x77c9bf99
push dword [ebp - 0xc4]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x77c9c03e
push 0xe
pop esi
push esi
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x77c9c09a
cmp ecx, 8
je 0x77c9bdee
jmp 0x77ce298c
lea ecx, [ebp - 0xf4]
push ecx
push dword [ebp - 0x10]
push eax
push ebx
call fcn.77d09d42
jmp 0x77c9be18
test dx, dx
je 0x77ce2801
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x77c9be2f
add eax, 4
add ecx, 4
test dx, dx
jne 0x77c9be23
xor eax, eax
jmp 0x77c9be34
cmp byte [ebx + 6], 1
jb 0x77c9bed2
cmp byte [ebx + 7], 2
jb 0x77c9bed2
mov edi, dword [ebp - 0xf0]
lea eax, [ebp - 0xe4]
push eax
push edi
push dword [ebp - 0xd8]
call fcn.77cb13f0
test eax, eax
mov dword [ebp - 0xbc], eax
je 0x77ce29cc
cmp eax, 8
je 0x77ce29cc
cmp dword [ebp - 0xe4], 0
je 0x77ce29cc
push 0x58
lea eax, [ebp - 0xb4]
push 0
push eax
call sub.ntdll.dll_memset
mov eax, dword [ebp - 0xd8]
add esp, 0xc
push eax
push dword [ebp - 0xbc]
lea ecx, [ebp - 0xb4]
push ecx
add edi, eax
push edi
push 0
call fcn.77cb0f8b
test eax, eax
mov dword [ebp - 0xbc], eax
jne 0x77c9bed2
cmp dword [ebp - 0x68], 0x20
jb 0x77c9bed2
mov edi, esi
mov esi, dword [ebp - 0x6c]
push 8
add edi, 0x340
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x128]
jmp 0x77c9bed2
push 5
push 0x18
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0xc4]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jl 0x77ce28fa
push edi
push dword [ebp - 0x120]
push dword [ebp - 0x14c]
push dword [ebp - 0x150]
call fcn.77ccc4e1
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], edi
jne 0x77c9bef9
push dword [ebp - 0xf8]
mov ebx, dword [sym.imp.ntdll.dll_NtClose]
call ebx
add esi, 0x21c
push dword [esi]
call ebx
mov dword [esi], edi
jmp 0x77ce29e7
sub edi, ecx
sub eax, ecx
xor edx, edx
div edi
mov edi, dword [ebp - 0xf0]
add edx, ecx
jmp 0x77c93c00
mov byte [ebp - 0xb5], cl
jmp 0x77c9c02d
mov edx, ecx
mov dword [ebp - 0xd4], edx
mov edx, eax
mov dword [ebp - 0xd0], edx
mov edx, dword [esi + 0x30]
mov dword [ebp - 0xec], edx
mov edx, dword [esi + 0x34]
mov dword [ebp - 0xe8], edx
jmp 0x77c93c60
mov eax, ecx
mov dword [ebp - 0xe0], eax
mov eax, dword [ebx + 0x104]
mov dword [ebp - 0xdc], eax
jmp 0x77c93c7a
mov esi, 0xa1
jmp 0x77ce2a76
push dword [ebp - 0xf8]
mov ebx, dword [sym.imp.ntdll.dll_NtClose]
call ebx
push dword [ebp - 0xc4]
call ebx
jmp 0x77ce2a71
push dword [ebp - 0xf8]
mov esi, dword [sym.imp.ntdll.dll_NtClose]
call esi
push dword [ebp - 0xc4]
call esi
push 0xe
pop esi
push esi
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x77c9c06c
push dword [ebp - 0xf8]
mov ebx, dword [sym.imp.ntdll.dll_NtClose]
call ebx
add esi, 0x21c
push dword [esi]
call ebx
and dword [esi], 0
mov esi, 0x570
jmp 0x77ce29c0
push dword [ebp - 0xf8]
mov ebx, dword [sym.imp.ntdll.dll_NtClose]
call ebx
add esi, 0x21c
push dword [esi]
call ebx
push 0x57
mov dword [esi], edi
pop esi
jmp 0x77c9c06c
push dword [ebp - 0xf8]
mov ebx, dword [sym.imp.ntdll.dll_NtClose]
call ebx
add esi, 0x21c
push dword [esi]
call ebx
and dword [esi], 0
mov esi, 0x570
jmp 0x77c9c06c
push dword [ebp - 0xf8]
mov esi, dword [sym.imp.ntdll.dll_NtClose]
call esi
push dword [ebp - 0xc4]
call esi
mov esi, 0x570
push esi
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor edi, edi
jmp 0x77ce2a7d
push dword [ebp - 0xf8]
mov esi, dword [sym.imp.ntdll.dll_NtClose]
call esi
push dword [ebp - 0xc4]
call esi
mov esi, 0x570
push esi
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
mov dword [ebp - 0xbc], esi
jmp 0x77c9c061
mov eax, dword [ebp - 0xe0]
mov edi, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xdc]
sub eax, edi
sbb ecx, dword [ebp - 0xd0]
cmp ecx, 0xc9
ja 0x77c9c07f
jb 0x77ce2abb
cmp eax, 0x2a69c000
ja 0x77c9c07f
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x77c9c07f
mov eax, dword [ebp - 0x12c]
push dword [eax + ebx*8 + 4]
push dword [eax + ebx*8]
call fcn.77ca0083
test eax, eax
je 0x77ce2b07
mov ecx, dword [eax + 0x18]
cmp ecx, 1
je 0x77ce2ae9
cmp ecx, 3
jne 0x77ce2b07
mov ecx, dword [ebp - 0xd0]
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp - 0xec]
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0xe8]
mov dword [eax + 0x28], edi
mov dword [eax + 0x34], ecx
inc ebx
cmp ebx, dword [ebp + 0x10]
jae 0x77c9c07f
jmp 0x77ce2ac6