Function at 0x4182f0
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1e10
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x51f524]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3c], edi
cmp dword [edi + 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
je 0x4183a6
push dword [edi + 0x10]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x54], ebx
call fcn.00409e40
mov ecx, eax
test ebx, ebx
jne 0x4183ad
test ecx, ecx
je 0x4186db
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi + 0x10]
lea eax, [ebp - 0x3c]
push str.open_process__d_failed__error___d_n
push eax
call fcn.00409d40
mov esi, dword [ebp - 0x3c]
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 0x4183a6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x4186bd
test ecx, ecx
je 0x4186e5
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
push eax
push 8
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x2c], 0
push eax
push dword [edi + 0xc]
xorps xmm0, xmm0
push ebx
movlpd qword [ebp - 0x4c], xmm0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41866e
cmp dword [ebp - 0x2c], 8
jne 0x41866e
push 0x2cc
call fcn.00466af7
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
je 0x418425
push 0x2cc
push 0
push eax
call fcn.0048d040
mov eax, dword [ebp - 0x38]
add esp, 0xc
jmp 0x41842a
xor eax, eax
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x2c]
push ecx
push 0x2cc
push eax
push dword [ebp - 0x48]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41865d
cmp dword [ebp - 0x2c], 0x2cc
jne 0x41865d
push 0x50
call fcn.00466af7
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
je 0x418476
push 0x50
push 0
push eax
call fcn.0048d040
mov ecx, dword [ebp - 0x34]
add esp, 0xc
jmp 0x41847b
xor ecx, ecx
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x2c]
push eax
push 0x50
push ecx
push dword [ebp - 0x4c]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x418636
cmp dword [ebp - 0x2c], 0x50
jne 0x418636
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
cmp dword [eax + 8], 0
je 0x418516
nop word [eax + eax]
push 0x50
call fcn.00466af7
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x40]
push 0x50
push edi
push dword [eax + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4184eb
cmp dword [ebp - 0x2c], 0x50
jne 0x4184eb
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [eax + 8], edi
cmp dword [edi + 8], 0
jne 0x4184b0
jmp 0x418513
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 8]
lea eax, [ebp - 0x30]
push str.ReadProcessMemoryfailed__remote_exception_record_x__error___d_n
push eax
call fcn.00409d40
mov esi, dword [ebp - 0x30]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [ebp - 0x3c]
push 8
call fcn.00466af7
mov ecx, dword [ebp - 0x34]
add esp, 4
mov dword [eax], ecx
mov ecx, dword [ebp - 0x38]
push 0
push 0x80
push 2
push 0
push 0
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0x14]
push 0xc0000000
push dword [ebp - 0x50]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x418693
call fcn.00417f90
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00469c00
push eax
push dword [0x51e1c4]
call fcn.00416f10
add esp, 8
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.0040f540
movzx ebx, bl
lea ecx, [ebp - 0x44]
add ebx, 0x144
call fcn.004095d0
push str.__full
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00409520
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00417f00
mov ecx, eax
call fcn.0040c5a0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
mov edi, eax
call fcn.00409920
test edi, edi
je 0x4185da
or ebx, 3
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x60]
mov edi, dword [ebp - 0x54]
push 0
push 0
push eax
mov eax, ebx
or eax, 0x1000
cmp byte [ecx], 0
cmove eax, ebx
push eax
push dword [ebp - 0x34]
mov eax, dword [ecx + 8]
push dword [ecx + 0x10]
push edi
call eax
push dword [ebp - 0x34]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x41861c
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 - 0x44]
call fcn.00409920
jmp 0x41869c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x4c]
lea eax, [ebp - 0x30]
push str.ReadProcessMemory_failed__remote_exception_record_x__error_d_n
push eax
call fcn.00409d40
mov esi, dword [ebp - 0x30]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41869a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x48]
push str.ReadProcessMemory_failed__remote_pContext_x__error_d_n
jmp 0x41867d
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 - 0x30]
push eax
call fcn.00409d40
mov esi, dword [ebp - 0x30]
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 0x4186bb
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466ab7
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00409b80
push 0x80004005
call fcn.00409b80
int3