Function at 0x45d960
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x4f0100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x40
mov dword [ebp - 0x194], eax
mov esi, edx
lea eax, [ebp - 0x170]
mov dword [ebp - 0x180], esi
mov ebx, ecx
mov dword [ebp - 0x1a0], 0
push 0
push eax
mov dword [ebp - 0x178], ebx
call fcn.0047d590
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 8]
add esp, 0xc
push eax
push 0x40
lea eax, [ebp - 0x170]
push eax
push esi
push ebx
call edi
test eax, eax
je 0x45dd46
cmp dword [ebp - 8], 0x40
jb 0x45dd46
push 0xf8
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.0047d590
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x134]
add eax, esi
push eax
push ebx
call edi
test eax, eax
je 0x45dd46
cmp dword [ebp - 8], 0xf8
jb 0x45dd46
mov eax, 0x10b
cmp word [ebp - 0x118], ax
je 0x45da49
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x1a0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b4e2
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebp - 0x11c]
xor esi, esi
mov eax, dword [ebp - 0x134]
add ecx, 0x18
add eax, ecx
mov dword [ebp - 0x60], 0
xor ecx, ecx
mov dword [ebp - 0x5c], 0
cmp cx, word [ebp - 0x12a]
jae 0x45daf5
mov ebx, dword [ebp - 0x180]
add ebx, eax
nop
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
push 0x28
lea eax, [ebp - 0x34]
movq qword [ebp - 0x14], xmm0
push eax
push ebx
push dword [ebp - 0x178]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call edi
test eax, eax
je 0x45dd46
cmp dword [ebp - 8], 0x28
jb 0x45dd46
cmp dword [ebp - 0x58], 0
mov edx, dword [ebp - 0xb0]
jne 0x45dade
mov ecx, dword [ebp - 0x28]
cmp edx, ecx
jb 0x45dade
mov edi, dword [ebp - 0x24]
lea eax, [edi + ecx]
cmp edx, eax
jae 0x45dad8
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movzx eax, word [ebp - 0x12a]
inc esi
add ebx, 0x28
cmp esi, eax
jb 0x45da80
mov ebx, dword [ebp - 0x178]
jmp 0x45dafb
mov edx, dword [ebp - 0xb0]
test edx, edx
je 0x45db89
cmp dword [ebp - 0xac], 0
jne 0x45db89
mov esi, dword [ebp - 0x180]
lea eax, [ebp - 0x20]
push 0
push 0x14
push eax
add esi, edx
push esi
push ebx
call edi
test eax, eax
je 0x45dd46
nop dword [eax + eax]
add dword [ebp - 0xac], 0x14
cmp dword [ebp - 0x14], 0
je 0x45db67
push 0
push 0x14
lea eax, [ebp - 0x20]
add esi, 0x14
push eax
push esi
push ebx
call edi
test eax, eax
jne 0x45db30
mov eax, dword [ebp - 0x1a0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b4e2
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push 0x4debd8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call edi
cmp eax, esi
je 0x45db89
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xcccccccd
mul dword [ebp - 0xac]
shr edx, 4
lea eax, [edx + edx*4]
shl eax, 2
mov dword [ebp - 0x190], eax
add eax, 0x14
cmp eax, 0x14
jb 0x45dd46
lea ecx, [eax + 7]
and ecx, 0xfffffff8
mov dword [ebp - 0x18c], ecx
cmp ecx, eax
jb 0x45dd46
lea esi, [ecx + 0x10]
mov dword [ebp - 0x184], esi
cmp esi, ecx
jb 0x45dd46
mov edi, esi
xor edx, edx
nop dword [eax + eax]
mov eax, dword [ebp - 0x194]
mov ecx, dword [eax + edx*4]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45dbf0
sub ecx, esi
lea eax, [ecx + 4]
and eax, 0xfffffffc
add eax, edi
cmp eax, edi
jb 0x45dd46
inc edx
mov edi, eax
mov dword [ebp - 0x188], edi
cmp edx, 1
jb 0x45dbe0
push edi
call fcn.0047bdec
add esp, 4
mov dword [ebp - 0x17c], eax
push edi
push 0
push eax
call fcn.0047d590
mov edx, dword [ebp - 0x180]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x10c]
add esp, 0xc
add esi, edx
mov dword [ebp - 0x10], 0
add esi, dword [ebp - 0x110]
xorps xmm0, xmm0
add esi, dword [ebp - 0x114]
add esi, dword [ebp - 0x104]
push 0x1c
cmp edx, esi
movq qword [ebp - 0x18], xmm0
push eax
cmovae esi, edx
push esi
push ebx
mov dword [ebp - 0x174], esi
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x45dd32
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
nop dword [eax]
mov edx, dword [ebp - 0x1c]
mov eax, edx
and eax, 0xfff
cmp eax, 0xfff
je 0x45dd38
cmp dword [ebp - 0x18], 0x10000
mov ecx, dword [ebp - 0x28]
jne 0x45dd06
cmp ecx, dword [ebp - 0x174]
lea eax, [edx + ecx]
cmova esi, ecx
add esi, 0xffff
and esi, 0xffff0000
cmp esi, eax
jae 0x45dd00
nop dword [eax]
push 4
push 0x3000
push dword [ebp - 0x188]
push esi
push ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x45dd5d
mov edx, dword [ebp - 0x1c]
add esi, 0x10000
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x178]
lea eax, [edx + ecx]
cmp esi, eax
jb 0x45dcd0
mov esi, dword [ebp - 0x174]
lea eax, [edx + ecx]
mov dword [ebp - 0x10], 0
push 0x1c
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
push ecx
push eax
push ebx
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x45dc90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x17c]
call fcn.0047b4f0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1a0]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0047b4e2
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x180]
mov edi, ebx
mov ecx, dword [ebp - 0xb0]
sub edi, edx
mov dword [ebp - 0x19c], edi
mov dword [ebp - 0xc], 0
test ecx, ecx
je 0x45ddac
mov esi, dword [ebp - 0x190]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x17c]
push esi
add eax, 0x14
push eax
lea eax, [ecx + edx]
push eax
push dword [ebp - 0x178]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x45dd38
cmp dword [ebp - 8], esi
jb 0x45dd38
mov edx, dword [ebp - 0x18c]
xor ecx, ecx
mov eax, dword [ebp - 0x17c]
add eax, 4
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x190], eax
lea eax, [edi + edx]
mov edi, dword [ebp - 0x17c]
mov dword [ebp - 0x198], eax
lea eax, [edx + 4]
add eax, edi
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x194]
mov esi, dword [ebp - 0x188]
sub esi, dword [ebp - 0x184]
add edi, dword [ebp - 0x184]
mov edx, esi
push dword [eax + ecx*4]
mov ecx, edi
call fcn.0045d6b0
test eax, eax
js 0x45dd38
test esi, esi
je 0x45de39
test edi, edi
je 0x45de39
cmp esi, 2
jb 0x45de39
nop dword [eax]
cmp byte [edi], 0x3f
jne 0x45de2b
cmp byte [edi + 1], 0x3f
je 0x45de34
dec esi
inc edi
cmp esi, 2
jae 0x45de20
jmp 0x45de39
mov word [edi], 0x3233
mov edx, dword [ebp - 0x190]
mov edi, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x174]
mov dword [edx - 4], eax
add eax, 8
mov dword [edi - 4], 0x80000001
mov dword [edi], 0
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x19c]
add eax, dword [ebp - 0x184]
mov dword [edi + 4], 0x80000001
mov dword [edi + 8], 0
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x194]
mov dword [edx], 0
mov dword [edx + 4], 0
mov ecx, dword [eax + ecx*4]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45dea0
add dword [ebp - 0x198], 0x10
sub ecx, esi
mov esi, dword [ebp - 0x184]
add edi, 0x10
add edx, 0x14
mov dword [ebp - 0x18c], edi
mov edi, dword [ebp - 0x17c]
lea eax, [ecx + 4]
mov dword [ebp - 0x190], edx
mov ecx, dword [ebp - 0x174]
and eax, 0xfffffffc
inc ecx
add esi, eax
mov dword [ebp - 0x184], esi
mov dword [ebp - 0x174], ecx
cmp ecx, 1
jb 0x45dde3
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push edi
push ebx
mov ebx, dword [ebp - 0x178]
push ebx
call esi
test eax, eax
je 0x45dd38
cmp dword [ebp - 0x58], 0
jne 0x45df28
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x54], eax
jmp 0x45df2e
mov eax, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x19c]
mov edi, dword [ebp - 0x180]
mov edx, edi
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebp - 0xdc]
mov dword [ebp - 0xb0], ecx
mov ecx, ebx
call fcn.00462690
test eax, eax
je 0x45dd38
push 0
push 0x40
lea eax, [ebp - 0x170]
mov dword [ebp - 0xd8], 0
push eax
push edi
push ebx
call esi
test eax, eax
je 0x45dd38
push 0
push 0xf8
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x134]
add eax, edi
push eax
push ebx
call esi
test eax, eax
je 0x45dd38
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0xdc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x45dd38
mov dword [ebp - 0x1a0], 1
jmp 0x45dd38