Function at 0x41aff0
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfda0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x51352c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
cmp dword [edi + 8], 0
je 0x41b09d
push dword [edi + 0x10]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.0040d0d0
mov ecx, eax
test ebx, ebx
jne 0x41b0b3
test ecx, ecx
je 0x41b3a7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi + 0x10]
lea eax, [ebp + 8]
push str.open_process__d_failed__error___d_n
push eax
call fcn.0040cfd0
mov esi, dword [ebp + 8]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41b09d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test ecx, ecx
je 0x41b3b1
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
push 8
lea eax, [ebp - 0x34]
mov dword [ebp - 0x10], 0
push eax
push dword [edi + 0xc]
xorps xmm0, xmm0
push ebx
movlpd qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41b344
cmp dword [ebp - 0x10], 8
jne 0x41b344
push 0x2cc
call fcn.0046526d
mov edi, eax
mov dword [ebp - 0x20], eax
add esp, 4
test edi, edi
je 0x41b12a
push 0x2cc
push 0
push edi
call fcn.0047cba0
add esp, 0xc
jmp 0x41b12f
xor edi, edi
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x10]
push eax
push 0x2cc
push edi
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41b333
cmp dword [ebp - 0x10], 0x2cc
jne 0x41b333
push 0x50
call fcn.0046526d
mov edi, eax
mov dword [ebp - 0x1c], eax
add esp, 4
test edi, edi
je 0x41b17a
push 0x50
push 0
push edi
call fcn.0047cba0
add esp, 0xc
jmp 0x41b17f
xor edi, edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x10]
push eax
push 0x50
push edi
push dword [ebp - 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41b30c
cmp dword [ebp - 0x10], 0x50
jne 0x41b30c
cmp dword [edi + 8], 0
mov dword [ebp - 0x18], edi
je 0x41b216
nop dword [eax + eax]
push 0x50
call fcn.0046526d
add esp, 4
mov edi, eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push 0x50
push edi
push dword [eax + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41b1eb
cmp dword [ebp - 0x10], 0x50
jne 0x41b1eb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [eax + 8], edi
cmp dword [edi + 8], 0
jne 0x41b1b0
jmp 0x41b213
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax + 8]
lea eax, [ebp - 0x14]
push str.ReadProcessMemoryfailed__remote_exception_record_x__error___d_n
push eax
call fcn.0040cfd0
mov esi, dword [ebp - 0x14]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [ebp - 0x1c]
push 8
call fcn.0046526d
mov ecx, dword [ebp - 0x20]
add esp, 4
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x24]
push 0
push 0x80
push 2
push 0
push 0
mov dword [eax], edi
mov ecx, dword [ecx + 0x14]
push 0xc0000000
push dword [ebp + 8]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x41b369
lea ecx, [ebp - 0x28]
mov ebx, 0x144
call fcn.0040c860
push str.__full
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0040c7b0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp + 8]
push eax
call fcn.0041ac10
mov ecx, eax
call fcn.0040f9e0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
mov edi, eax
call fcn.0040cbb0
mov ecx, dword [ebp - 0x24]
test edi, edi
mov edi, dword [ebp - 0x2c]
mov eax, 0x147
push 0
cmovne ebx, eax
lea eax, [ebp - 0x40]
push 0
push eax
mov eax, ebx
or eax, 0x1000
cmp byte [ecx], 0
cmove eax, ebx
push eax
push dword [ebp - 0x20]
mov eax, dword [ecx + 8]
push dword [ecx + 0x10]
push edi
call eax
push dword [ebp - 0x20]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x41b2f2
push str.write_dump_file_failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.0040cbb0
jmp 0x41b372
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x14]
push str.ReadProcessMemory_failed__remote_exception_record_x__error_d_n
push eax
call fcn.0040cfd0
mov esi, dword [ebp - 0x14]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41b370
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x30]
push str.ReadProcessMemory_failed__remote_pContext_x__error_d_n
jmp 0x41b353
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi + 0xc]
push str.ReadProcessMemory_failed__remote_pep_x__error_d_n
lea eax, [ebp - 0x14]
push eax
call fcn.0040cfd0
mov esi, dword [ebp - 0x14]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41b391
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040ce10
push 0x80004005
call fcn.0040ce10
int3