Function at 0x77c87059
Capabilities:
Get file attributes

Disassembly:
cmp byte [ebp - 0xbd], 1
jne 0x77c873f4
jmp 0x77cd3fa6
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 - 0xd0]
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 0x77c8741d
cmp esi, 2
jne 0x77c874c0
jmp 0x77c874b9
cmp dword [ebp + 0x10], 1
jbe 0x77c874fb
jmp 0x77cd4040
push dword [ebp - 0xc4]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x77c874c0
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x77d1a0c4]
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 - 0x120], edi
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x124], edi
mov byte [ebp - 0xb5], 1
mov byte [ebp - 0xbd], 0
mov dword [ebp - 0x128], edi
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x118], edi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, edi
mov dword [ebp - 0xe0], eax
je 0x77cd3d54
cmp dword [ebp + 0x10], edi
push ebx
mov dword [ebp - 0xc8], edi
jbe 0x77c874e3
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 - 0xd0], 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 0x77cd3f3a
mov esi, dword [ebp - 0xe0]
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 - 0x100], eax
je 0x77c874e3
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x134]
push eax
push ebx
push esi
push dword [ebp - 0xc4]
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x104], edi
call fcn.77c87f5c
cmp dword [ebp - 0x134], 0x400
jb 0x77cd4013
mov eax, dword [esi + 0x30]
cmp eax, 0x48
jb 0x77cd4013
cmp eax, dword [esi]
ja 0x77cd4013
push 0x58
lea eax, [ebp - 0x5c]
push edi
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0xdc]
push eax
push 0x48
push esi
call fcn.77c973ca
cmp eax, edi
je 0x77cd4013
cmp eax, 8
je 0x77cd4013
cmp dword [ebp - 0xdc], edi
je 0x77cd4013
push esi
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [esi + 0x48]
push eax
push edi
call fcn.77c93af1
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xdc]
add eax, 0x48
cmp dword [ebp - 0xbc], edi
mov dword [ebp - 0xfc], eax
jne 0x77cd4013
cmp dword [ebp - 0x10], 0x30
jb 0x77cd4013
cmp eax, ebx
ja 0x77cd4013
mov eax, dword [ebp - 0xd0]
mov ebx, dword [eax]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x2c]
add ebx, 0x70
cmp ecx, 4
jne 0x77cd3d63
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x77cd3f44
cmp ecx, 4
jne 0x77cd3d71
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 - 0xec], eax
mov eax, dword [ebp - 0xec]
mov ecx, 0x77c97988
mov dx, word [eax]
cmp dx, word [ecx]
je 0x77cd3d87
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0xd0]
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 - 0xf8], eax
jne 0x77cd3fed
cmp eax, 0x400
jb 0x77cd3fed
cmp eax, 0x100000
ja 0x77cd3fed
cmp dword [ebp + 0x14], 0
jne 0x77c8693a
mov ecx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0xc8]
push dword [ecx + eax*8 + 4]
push dword [ecx + eax*8]
call fcn.77c96bd8
mov esi, eax
test esi, esi
mov dword [ebp - 0xcc], esi
je 0x77cd3f5f
mov eax, dword [ebp - 0xc4]
mov dword [esi + 0x21c], eax
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax]
cmp dword [eax + 0x194], 0
jne 0x77cd3db0
cmp dword [ebx], 0x100000
ja 0x77cd3fc8
cmp dword [ebx + 0xc], 0x100
ja 0x77cd3fc8
mov eax, dword [ebx + 0x10]
or eax, dword [ebx + 0x14]
je 0x77c87b25
xor edi, edi
mov eax, dword [ebx + 0x24]
mov dword [esi + 0x228], eax
mov eax, dword [ebx]
mov dword [esi + 0x224], eax
mov edx, dword [ebx + 0x20]
test dl, 2
jne 0x77c875e3
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 0x77c85c2b
cmp dword [ebp - 0xc8], edi
jne 0x77c8763d
mov eax, dword [esi + 0x18]
mov byte [ebp - 0xbd], 1
mov dword [ebp - 0x128], eax
mov dword [esi + 0x18], edi
mov eax, dword [esi + 0x18]
cmp eax, 1
je 0x77c85c3d
cmp eax, 3
je 0x77c85c3d
mov eax, dword [ebp - 0xd0]
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 0x77c8765e
mov eax, dword [ebx + 0x100]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebx + 0x104]
mov dword [ebp - 0xd4], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0xf4], eax
mov eax, dword [esi + 0x34]
mov esi, dword [esi + 0x18]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebx + 0x100]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebx + 0x104]
mov dword [ebp - 0xe4], eax
lea eax, [ebx + 0xf0]
mov ecx, dword [eax]
mov dword [ebp - 0x11c], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x118], ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x120], ecx
mov ecx, dword [ebx + 0x34]
mov dword [ebp - 0x130], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x114], ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
mov dword [ebp - 0x124], esi
je 0x77cd3eef
cmp esi, edi
jne 0x77c85c6e
mov byte [ebp - 0xb5], 0
push dword [ebp - 0x100]
call dword [sym.imp.ntdll.dll_NtClose]
inc dword [ebp - 0xc8]
mov eax, dword [ebp - 0xc8]
cmp eax, dword [ebp + 0x10]
jb 0x77c8711d
xor edi, edi
cmp dword [ebp + 0x14], edi
mov esi, dword [ebp - 0xbc]
jne 0x77c874fb
cmp byte [ebp - 0xb5], 1
je 0x77c85c7c
push dword [ebp - 0xe0]
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.77cc744e
leave
ret 0x10
mov eax, dword [ebx + 0x1c]
cmp eax, edi
jbe 0x77c87398
test dx, 0x2000
mov ecx, dword [ebx + 0x28]
mov edi, dword [ebx + 0x24]
jne 0x77cd3eca
shl eax, 0x14
xor edx, edx
div dword [ebp - 0xf8]
cmp eax, ecx
mov dword [ebp - 0xcc], eax
jbe 0x77c8761c
cmp eax, edi
jb 0x77cd3ed2
mov edx, ecx
mov eax, dword [ebp - 0xcc]
mov dword [esi + 0x22c], ecx
mov dword [esi + 0x230], edx
mov dword [esi + 0x234], eax
xor edi, edi
jmp 0x77c87398
cmp byte [ebp - 0xbd], 1
jne 0x77cd3fa6
mov eax, dword [ebp - 0x128]
cmp eax, dword [esi + 0x18]
je 0x77c873f1
jmp 0x77cd3fa6
mov eax, dword [ebx + 0x104]
cmp eax, dword [ebp - 0xd4]
mov ecx, dword [ebx + 0x100]
jg 0x77c87684
jl 0x77cd3efa
cmp ecx, dword [ebp - 0xd8]
jb 0x77cd3efa
cmp eax, dword [ebp - 0xe4]
jl 0x77c8769e
jg 0x77cd3f21
cmp ecx, dword [ebp - 0xe8]
ja 0x77cd3f21
mov eax, dword [ebx + 0xf0]
mov ecx, dword [ebx + 0xf4]
mov edx, eax
or edx, ecx
je 0x77c874b9
cmp dword [ebp - 0x11c], eax
jne 0x77c874b9
cmp dword [ebp - 0x118], ecx
jne 0x77c874b9
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebx + 0xc]
jne 0x77c874b9
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebx + 0x34]
jne 0x77c874b9
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebx + 4]
jne 0x77c874b9
mov eax, dword [ebp - 0x124]
cmp eax, dword [esi + 0x18]
je 0x77c874c0
jmp 0x77c874b9
push dword [ebp - 0xec]
call fcn.77c87b47
xor edi, edi
cmp eax, edi
mov dword [ebx + 0x24], eax
jne 0x77c8737b
jmp 0x77cd3e65
push 0xe
pop esi
push esi
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x77c87516
cmp ecx, 8
je 0x77c87270
jmp 0x77cd3f44
lea ecx, [ebp - 0xec]
push ecx
push dword [ebp - 0x10]
push eax
push ebx
call fcn.77cfd144
jmp 0x77c8729a
test dx, dx
je 0x77cd3da9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x77c872b1
add eax, 4
add ecx, 4
test dx, dx
jne 0x77c872a5
xor eax, eax
jmp 0x77c872b6
cmp byte [ebx + 6], 1
jb 0x77c87354
cmp byte [ebx + 7], 2
jb 0x77c87354
mov edi, dword [ebp - 0xfc]
lea eax, [ebp - 0xdc]
push eax
push edi
push dword [ebp - 0xe0]
call fcn.77c973ca
test eax, eax
mov dword [ebp - 0xbc], eax
je 0x77cd3f84
cmp eax, 8
je 0x77cd3f84
cmp dword [ebp - 0xdc], 0
je 0x77cd3f84
push 0x58
lea eax, [ebp - 0xb4]
push 0
push eax
call sub.ntdll.dll_memset
mov eax, dword [ebp - 0xe0]
add esp, 0xc
push eax
push dword [ebp - 0xbc]
lea ecx, [ebp - 0xb4]
push ecx
add edi, eax
push edi
push 0
call fcn.77c93af1
test eax, eax
mov dword [ebp - 0xbc], eax
jne 0x77c87354
cmp dword [ebp - 0x68], 0x20
jb 0x77c87354
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 - 0xcc]
jmp 0x77c87354
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 0x77cd3ea2
push edi
push dword [ebp - 0xf8]
push dword [ebp - 0x14c]
push dword [ebp - 0x150]
call fcn.77cb0744
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], edi
jne 0x77c8737b
push dword [ebp - 0x100]
mov ebx, dword [sym.imp.ntdll.dll_NtClose]
call ebx
add esi, 0x21c
push dword [esi]
call ebx
mov dword [esi], edi
jmp 0x77cd3f9f
shl eax, 0xa
jmp 0x77c87602
sub eax, ecx
mov dword [ebp - 0xfc], eax
mov eax, edi
mov edi, dword [ebp - 0xfc]
sub eax, ecx
xor edx, edx
div edi
add edx, ecx
jmp 0x77c8761e
mov byte [ebp - 0xb5], cl
jmp 0x77c874b1
mov edx, ecx
mov dword [ebp - 0xd8], edx
mov edx, eax
mov dword [ebp - 0xd4], edx
mov edx, dword [esi + 0x30]
mov dword [ebp - 0xf4], edx
mov edx, dword [esi + 0x34]
mov dword [ebp - 0xf0], edx
jmp 0x77c87684
mov eax, ecx
mov dword [ebp - 0xe8], eax
mov eax, dword [ebx + 0x104]
mov dword [ebp - 0xe4], eax
jmp 0x77c8769e
mov esi, 0xa1
jmp 0x77cd402e
push dword [ebp - 0x100]
mov ebx, dword [sym.imp.ntdll.dll_NtClose]
call ebx
push dword [ebp - 0xc4]
call ebx
jmp 0x77cd4029
push dword [ebp - 0x100]
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 0x77c874ee
push dword [ebp - 0x100]
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 0x77cd3f78
push dword [ebp - 0x100]
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 0x77c874ee
push dword [ebp - 0x100]
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 0x77c874ee
push dword [ebp - 0x100]
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 0x77cd4035
push dword [ebp - 0x100]
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 0x77c874e3
mov eax, dword [ebp - 0xe8]
sub eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xe4]
sbb ecx, dword [ebp - 0xd4]
cmp ecx, 0xc9
ja 0x77c874fb
jb 0x77cd4071
cmp eax, 0x2a69c000
ja 0x77c874fb
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x77c874fb
mov edi, dword [ebp - 0x12c]
push dword [edi + ebx*8 + 4]
push dword [edi + ebx*8]
call fcn.77c96bd8
test eax, eax
je 0x77cd40c3
mov ecx, dword [eax + 0x18]
cmp ecx, 1
je 0x77cd409f
cmp ecx, 3
jne 0x77cd40c3
mov ecx, dword [ebp - 0xd8]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0xd4]
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp - 0xf4]
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0xf0]
mov dword [eax + 0x34], ecx
inc ebx
cmp ebx, dword [ebp + 0x10]
jae 0x77c874fb
jmp 0x77cd4082