Function at 0x40ce40
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3c89
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4cb134]
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 - 0x58], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], 0
cmp dword [edi + 8], 0
mov dword [ebp - 0x68], eax
je 0x40cefa
push dword [edi + 0x10]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
call fcn.00403f60
mov ecx, eax
test ebx, ebx
jne 0x40cf01
test ecx, ecx
je 0x40d256
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi + 0x10]
lea eax, [ebp - 0x44]
push str.open_process__d_failed__error___d_n
push eax
call fcn.0040bbc0
mov esi, dword [ebp - 0x44]
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 0x40cefa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x40d238
test ecx, ecx
je 0x40d260
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 1
push eax
push 8
lea eax, [ebp - 0x64]
mov dword [ebp - 0x48], 0
push eax
push dword [edi + 0xc]
xorps xmm0, xmm0
push ebx
movlpd qword [ebp - 0x64], xmm0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x40d1e9
cmp dword [ebp - 0x48], 8
jne 0x40d1e9
push 0x2cc
call fcn.0043ff9a
mov edi, eax
mov dword [ebp - 0x50], eax
add esp, 4
test edi, edi
je 0x40cf78
push 0x2cc
push 0
push edi
call fcn.0044ecd0
add esp, 0xc
jmp 0x40cf7d
xor edi, edi
mov dword [ebp - 0x50], edi
lea eax, [ebp - 0x48]
push eax
push 0x2cc
push edi
push dword [ebp - 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x40d1d8
cmp dword [ebp - 0x48], 0x2cc
jne 0x40d1d8
push 0x50
call fcn.0043ff9a
mov edi, eax
mov dword [ebp - 0x44], eax
add esp, 4
test edi, edi
je 0x40cfc8
push 0x50
push 0
push edi
call fcn.0044ecd0
add esp, 0xc
jmp 0x40cfcd
xor edi, edi
mov dword [ebp - 0x44], edi
lea eax, [ebp - 0x48]
push eax
push 0x50
push edi
push dword [ebp - 0x64]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x40d1b1
cmp dword [ebp - 0x48], 0x50
jne 0x40d1b1
cmp dword [edi + 8], 0
mov dword [ebp - 0x54], edi
je 0x40d066
nop dword [eax]
push 0x50
call fcn.0043ff9a
add esp, 4
mov edi, eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x54]
push 0x50
push edi
push dword [eax + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x40d03b
cmp dword [ebp - 0x48], 0x50
jne 0x40d03b
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x54], edi
mov dword [eax + 8], edi
cmp dword [edi + 8], 0
jne 0x40d000
jmp 0x40d063
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x54]
push dword [eax + 8]
lea eax, [ebp - 0x4c]
push str.ReadProcessMemoryfailed__remote_exception_record_x__error___d_n
push eax
call fcn.0040bbc0
mov esi, dword [ebp - 0x4c]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [ebp - 0x44]
push 8
call fcn.0043ff9a
mov ecx, dword [ebp - 0x50]
add esp, 4
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x58]
push 0
push 0x80
push 2
push 0
push 0
mov dword [eax], edi
mov ecx, dword [ecx + 0x14]
push 0xc0000000
push dword [ebp - 0x68]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
je 0x40d20e
call fcn.0040c910
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push dword [0x4cb044]
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], 1
call fcn.0040a790
add esp, 8
test al, al
jne 0x40d0f7
call fcn.0040c910
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov eax, 3
jmp 0x40d0fc
mov eax, 1
test al, 2
je 0x40d108
lea ecx, [ebp - 0x28]
call fcn.00402d70
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 1
call fcn.00402d70
lea ecx, [ebp - 0x5c]
call fcn.0040abe0
push str.__full
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.004074c0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040c880
mov ecx, eax
call fcn.00404020
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
mov edi, eax
call fcn.00402b90
push 0
push 0
mov ecx, 0x1967
test edi, edi
mov eax, 0x1965
cmovne eax, ecx
lea ecx, [ebp - 0x74]
push ecx
push eax
mov eax, dword [ebp - 0x58]
push dword [ebp - 0x44]
push dword [eax + 0x10]
mov eax, dword [eax + 8]
push ebx
call eax
push dword [ebp - 0x44]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x40d197
push str.write_dump_file_failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x5c]
call fcn.00402b90
jmp 0x40d217
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x64]
lea eax, [ebp - 0x4c]
push str.ReadProcessMemory_failed__remote_exception_record_x__error_d_n
push eax
call fcn.0040bbc0
mov esi, dword [ebp - 0x4c]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40d215
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x60]
push str.ReadProcessMemory_failed__remote_pContext_x__error_d_n
jmp 0x40d1f8
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 - 0x4c]
push eax
call fcn.0040bbc0
mov esi, dword [ebp - 0x4c]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d236
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.004403da
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00403c50
push 0x80004005
call fcn.00403c50
int3