Function at 0x445838
Capabilities:
Attach user process memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x49dd48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x61
xor ebx, ebx
call fcn.004355f2
mov dword [ebp - 0x44], eax
test eax, eax
je 0x445863
lea ecx, [ebp - 0x1c]
push ecx
push eax
call sub.ntoskrnl.exe_KeStackAttachProcess
push esi
push edi
push 0x4bfa
call fcn.004355f2
push 0x4d80
mov edi, eax
call fcn.004355f2
push 0x20
mov dword [ebp - 0x38], eax
call fcn.004355f2
push 0x21
mov dword [ebp - 0x30], eax
call fcn.004355f2
mov esi, eax
push 0x22
mov dword [ebp - 0x3c], esi
call fcn.004355f2
push 3
mov dword [ebp - 0x24], eax
call fcn.004355f2
push 2
mov dword [ebp - 0x2c], eax
call fcn.004355f2
test edi, edi
je 0x445a43
cmp edi, esi
jae 0x445a43
cmp dword [ebp - 0x30], ebx
je 0x445a43
cmp dword [ebp - 0x24], ebx
je 0x445a43
test esi, esi
je 0x445a43
cmp dword [ebp - 0x2c], ebx
je 0x445a43
test eax, eax
je 0x445a43
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x445a43
cmp eax, esi
jae 0x445a43
push 0x4c8a
call fcn.004355f2
push 0x4c8d
mov dword [ebp - 0x4c], eax
call fcn.004355f2
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x24]
push 0x914
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
add edi, eax
add eax, esi
mov dword [ebp - 0x34], eax
call fcn.004355f2
cmp eax, 0x3ad7
mov dword [ebp - 0x24], ebx
mov esi, ebx
sbb eax, eax
and eax, 4
dec eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x34]
push edi
call fcn.0041d7e6
test al, al
je 0x445a43
mov eax, dword [ebp - 0x50]
add edi, dword [ebp - 0x58]
cmp dword [eax], 0x10cd
jne 0x44599c
mov esi, dword [ebp - 0x64]
sub esi, dword [ebp - 0x30]
push 0x914
add esi, edi
call fcn.004355f2
cmp eax, 0x3ad7
jae 0x4459c4
cmp dword [ebp - 0x4c], esi
je 0x445999
cmp dword [ebp - 0x48], esi
je 0x445999
mov eax, dword [ebp - 0x28]
dec eax
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
jmp 0x44599f
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4459b6
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
cmp eax, 0x10ab
jl 0x4459b6
cmp eax, 0x10b2
jle 0x4459d2
inc esi
mov dword [ebp - 0x24], esi
cmp esi, 0x100
jb 0x445947
jmp 0x445a43
mov eax, dword [ebp - 0x38]
sub eax, esi
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x445991
mov eax, dword [ebp - 0x60]
test eax, eax
jle 0x445a43
mov esi, dword [ebp - 0x40]
cmp eax, esi
jbe 0x445a43
sub eax, esi
cmp eax, dword [ebp - 0x3c]
jae 0x445a43
add eax, dword [ebp - 0x2c]
push eax
push 0x2b8
call fcn.004356b2
mov byte [ebp - 0x1d], bl
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x34]
push edi
call fcn.0041d7e6
test al, al
je 0x445a40
mov eax, dword [ebp - 0x50]
add edi, dword [ebp - 0x58]
cmp dword [eax], 0x1151
jne 0x445a37
cmp byte [ebp - 0x6c], 1
jne 0x445a37
cmp dword [ebp - 0x58], 8
jne 0x445a37
mov ecx, dword [ebp - 0x64]
test ecx, ecx
jle 0x445a37
cmp ecx, esi
jbe 0x445a37
mov eax, ecx
sub eax, esi
cmp eax, dword [ebp - 0x3c]
jb 0x445a65
inc ebx
cmp ebx, 0x300
jb 0x4459f8
mov bl, byte [ebp - 0x1d]
cmp dword [ebp - 0x44], 0
pop edi
pop esi
je 0x445a54
lea eax, [ebp - 0x1c]
push eax
call sub.ntoskrnl.exe_KeUnstackDetachProcess
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00489f30
mov esp, ebp
pop ebp
ret
sub ecx, esi
add ecx, dword [ebp - 0x2c]
push ecx
push 0x2ba
call fcn.004356b2
mov bl, 1
jmp 0x445a43