Function at 0x41b272
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 0xc0000043
push ebx
push esi
push edi
je 0x41b29e
cmp dword [ecx], 0xc0190001
jne 0x41b6cf
mov eax, dword [ecx + 4]
cmp eax, 5
ja 0x41b2c9
je 0x41b331
sub eax, 1
je 0x41b2e5
sub eax, 1
je 0x41b2e5
sub eax, 1
je 0x41b355
sub eax, 1
je 0x41b2e5
jmp 0x41b6cf
sub eax, 6
je 0x41b355
sub eax, 1
je 0x41b355
sub eax, 1
je 0x41b331
sub eax, 9
jne 0x41b6cf
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x2c
push ecx
push ecx
lea edx, [ecx + 0x10]
xor ecx, ecx
inc ecx
call fcn.00459332
test eax, eax
js 0x41b6d1
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x41b32c
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
cmp word [ecx], 0x20
jne 0x41b323
sub edx, 2
add ecx, 2
dec eax
sub eax, 1
jne 0x41b311
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
lea ecx, [ebp - 0x54]
jmp 0x41b35e
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x2c
push ecx
push ecx
lea edx, [ecx + 0x10]
xor ecx, ecx
inc ecx
call fcn.00459332
test eax, eax
js 0x41b6d1
lea ecx, [ebp - 0x18]
jmp 0x41b35e
add ecx, 0x10
je 0x41b6cf
xor ebx, ebx
lea edx, [ebp - 0x28]
mov dword [ebp - 8], ebx
call fcn.00459202
mov esi, eax
test esi, esi
jns 0x41b38e
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x41b387
cmp ecx, 0xffffffff
je 0x41b387
mov dword [ebp - 8], ebx
push ecx
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
jmp 0x41b6d1
push 0x4020
lea eax, [ebp - 0x28]
mov dword [ebp - 0x74], 0x18
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x30]
push 7
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x70], ebx
push eax
push 0x100080
lea eax, [ebp - 8]
mov dword [ebp - 0x68], 0x40
push eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov esi, eax
test esi, esi
jns 0x41b409
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x402f5c
mov dword [ebp - 0x18], 0x4031bc
mov dword [ebp - 0x14], 0x48a
mov dword [ebp - 0x10], 0x4031d0
call fcn.0045a015
mov eax, dword [ebp - 8]
test eax, eax
je 0x41b387
cmp eax, 0xffffffff
je 0x41b387
mov dword [ebp - 8], ebx
push eax
jmp 0x41b381
xor eax, eax
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
lea edx, [ebp - 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x400
mov ecx, edi
call fcn.0045b0f1
mov esi, eax
test esi, esi
jns 0x41b433
lea ecx, [ebp - 0x54]
call fcn.0041d2e7
jmp 0x41b371
mov ebx, dword [ebp - 0x4c]
lea eax, [ebp - 0x30]
push 0x2f
push edi
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
test esi, esi
jns 0x41b497
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x402f5c
mov dword [ebp - 0x18], 0x4031bc
mov dword [ebp - 0x14], 0x4a1
mov dword [ebp - 0x10], 0x403260
call fcn.0045a015
lea ecx, [ebp - 0x54]
call fcn.0041d2e7
mov eax, dword [ebp - 8]
test eax, eax
je 0x41b387
cmp eax, 0xffffffff
je 0x41b387
and dword [ebp - 8], 0
jmp 0x41b403
xor esi, esi
mov dword [ebp - 0x88], esi
cmp dword [ebx], esi
jbe 0x41b6b1
lea ecx, [ebx + 4]
mov dword [ebp - 0x8c], ecx
xor eax, eax
mov dword [ebp - 0x48], 0x18
lea edi, [ebp - 0x44]
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
mov dword [ebp - 0x58], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ecx]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x1000
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_NtOpenProcess]
mov esi, eax
test esi, esi
js 0x41b65f
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
xor edi, edi
push edi
push edi
push 0x1b
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov esi, eax
cmp esi, 0x80000005
je 0x41b526
cmp esi, 0xc0000023
je 0x41b526
cmp esi, 0xc0000004
jne 0x41b5b2
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
call fcn.0045b0f1
mov esi, eax
test esi, esi
js 0x41b5e8
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push edi
push 0x1b
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov esi, eax
test esi, esi
js 0x41b62a
xor esi, esi
cmp word [edi], si
jbe 0x41b569
mov ecx, edi
call fcn.0041a6c3
lea ecx, [ebp - 0x18]
call fcn.0041d2e7
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41b587
cmp eax, 0xffffffff
je 0x41b587
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntdll.dll_NtClose]
mov esi, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x8c]
inc esi
add ecx, 4
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ecx
cmp esi, dword [ebx]
jae 0x41b6af
xor esi, esi
jmp 0x41b4b0
test esi, esi
js 0x41b5c1
push 0xc00000e5
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
push esi
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], 0x402f5c
mov dword [ebp - 0x80], 0x4031bc
mov dword [ebp - 0x7c], 0x4c9
mov dword [ebp - 0x78], edi
call fcn.0045a015
lea ecx, [ebp - 0x18]
call fcn.0041d2e7
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41b606
cmp eax, 0xffffffff
je 0x41b606
push eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [ebp - 0x54]
call fcn.0041d2e7
mov eax, dword [ebp - 8]
test eax, eax
je 0x41b387
cmp eax, 0xffffffff
je 0x41b387
mov dword [ebp - 8], edi
jmp 0x41b403
push esi
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], 0x402f5c
mov dword [ebp - 0x80], 0x4031bc
mov dword [ebp - 0x7c], 0x4d4
mov dword [ebp - 0x78], 0x403310
call fcn.0045a015
lea ecx, [ebp - 0x18]
call fcn.0041d2e7
jmp 0x41b68a
push esi
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], 0x402f5c
mov dword [ebp - 0x80], 0x4031bc
mov dword [ebp - 0x7c], 0x4b6
mov dword [ebp - 0x78], 0x4032cc
call fcn.0045a015
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x41b6a2
cmp eax, 0xffffffff
je 0x41b6a2
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [ebp - 0x54]
call fcn.0041d2e7
jmp 0x41b3f4
xor esi, esi
lea ecx, [ebp - 0x54]
call fcn.0041d2e7
mov eax, dword [ebp - 8]
test eax, eax
je 0x41b6cf
cmp eax, 0xffffffff
je 0x41b6cf
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00461687
leave
ret