Function at 0x47f382
Capabilities:
Attach user process memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x49dd48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x61
call fcn.004355f2
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov edi, eax
sub edi, esi
neg edi
sbb edi, edi
and edi, esi
mov dword [ebp - 0x44], edi
je 0x47f3bd
lea eax, [ebp - 0x1c]
push eax
push edi
call sub.ntoskrnl.exe_KeStackAttachProcess
push 0x63
call fcn.004355f2
push 0x20
mov esi, eax
call fcn.004355f2
push 0x21
mov dword [ebp - 0x2c], eax
call fcn.004355f2
push 0x22
mov dword [ebp - 0x30], eax
call fcn.004355f2
push 3
mov dword [ebp - 0x20], eax
call fcn.004355f2
mov ebx, eax
push 2
mov dword [ebp - 0x34], ebx
call fcn.004355f2
push 0x4af2
mov dword [ebp - 0x24], eax
call fcn.004355f2
mov dword [ebp - 0x48], eax
test esi, esi
je 0x47f59c
cmp dword [ebp - 0x2c], 0
je 0x47f59c
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x47f59c
cmp dword [ebp - 0x20], 0
je 0x47f59c
test ebx, ebx
je 0x47f59c
cmp dword [ebp - 0x24], 0
je 0x47f59c
test eax, eax
je 0x47f59c
or ecx, 0xffffffff
cmp esi, ebx
jbe 0x47f453
mov ecx, esi
sub ecx, ebx
cmp ecx, edx
jae 0x47f59c
lea eax, [ecx + ebx]
cmp esi, eax
jne 0x47f59c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x2c]
lea esi, [ecx + eax]
add eax, edx
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x6c]
push ecx
push eax
push esi
call fcn.0041d7e6
test al, al
je 0x47f59c
mov eax, dword [ebp - 0x4c]
add esi, dword [ebp - 0x54]
cmp dword [eax], 0x105f
jne 0x47f533
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x28]
push esi
call fcn.0041d7e6
cmp al, 1
jne 0x47f533
mov eax, dword [ebp - 0x4c]
add esi, dword [ebp - 0x54]
cmp dword [eax], 0x105f
jne 0x47f533
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
push esi
call fcn.0041d7e6
cmp al, 1
jne 0x47f533
mov eax, dword [ebp - 0x4c]
add esi, dword [ebp - 0x54]
cmp dword [eax], 0x105f
jne 0x47f533
mov eax, dword [ebp - 0x5c]
xor edi, edi
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push esi
call fcn.0041d7e6
test al, al
je 0x47f510
add esi, dword [ebp - 0x54]
inc edi
cmp edi, 4
jb 0x47f4f8
mov ebx, dword [ebp - 0x34]
cmp edi, 4
mov edi, dword [ebp - 0x44]
jb 0x47f533
mov eax, dword [ebp - 0x4c]
cmp dword [eax], 0x10cd
jne 0x47f533
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x2c]
add eax, esi
cmp dword [ebp - 0x48], eax
je 0x47f549
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, 0xc8
jae 0x47f59c
mov eax, dword [ebp - 0x28]
jmp 0x47f47e
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x38]
cmp edx, ecx
jbe 0x47f59c
mov eax, dword [ebp - 0x20]
cmp eax, ecx
jbe 0x47f59c
mov esi, dword [ebp - 0x3c]
cmp esi, ecx
jbe 0x47f59c
sub eax, ecx
sub edx, ecx
sub esi, ecx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x30]
cmp edx, ecx
jae 0x47f59c
cmp eax, ecx
jae 0x47f59c
cmp esi, ecx
jae 0x47f59c
lea eax, [edx + ebx]
push eax
push 0x67
call fcn.004356b2
mov eax, dword [ebp - 0x20]
add eax, ebx
push eax
push 0x66
call fcn.004356b2
lea eax, [esi + ebx]
push eax
push 0x65
call fcn.004356b2
test edi, edi
pop edi
pop esi
pop ebx
je 0x47f5ac
lea eax, [ebp - 0x1c]
push eax
call sub.ntoskrnl.exe_KeUnstackDetachProcess
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489f30
mov esp, ebp
pop ebp
ret