Function at 0x417fd0
Capabilities:
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f78e5
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x5381f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x50]
cmp dword [eax + 8], 0
jne 0x418015
xor eax, eax
jmp 0x418677
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x10]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x418093
lea ecx, [ebp - 0x68]
call fcn.004037a0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x10]
push ecx
push str.open_process__d_failed__error___d_n
lea edx, [ebp - 0x68]
push edx
call fcn.004043f0
add esp, 0x10
lea ecx, [ebp - 0x68]
call fcn.00403a90
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0xc0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00403900
mov eax, dword [ebp - 0xc0]
jmp 0x418677
lea ecx, [ebp - 0x44]
call fcn.004037a0
mov dword [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x58]
push ecx
push 8
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4180e6
cmp dword [ebp - 0x58], 8
je 0x418142
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0xc]
push ecx
push str.ReadProcessMemory_failed__remote_pep_x__error_d_n
lea edx, [ebp - 0x44]
push edx
call fcn.004043f0
add esp, 0x10
lea ecx, [ebp - 0x44]
call fcn.00403a90
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00403900
mov eax, dword [ebp - 0xdc]
jmp 0x418677
push 0x2cc
call fcn.0046625a
add esp, 4
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x418176
push 0x2cc
push 0
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.004a03d0
add esp, 0xc
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0xa8], edx
jmp 0x418180
mov dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xb0], eax
lea ecx, [ebp - 0x58]
push ecx
push 0x2cc
mov edx, dword [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4181ba
cmp dword [ebp - 0x58], 0x2cc
je 0x418216
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x84]
push edx
push str.ReadProcessMemory_failed__remote_pContext_x__error_d_n
lea eax, [ebp - 0x44]
push eax
call fcn.004043f0
add esp, 0x10
lea ecx, [ebp - 0x44]
call fcn.00403a90
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xe0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00403900
mov eax, dword [ebp - 0xe0]
jmp 0x418677
push 0x50
call fcn.0046625a
add esp, 4
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x418244
push 0x50
push 0
mov edx, dword [ebp - 0x70]
push edx
call fcn.004a03d0
add esp, 0xc
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xac], eax
jmp 0x41824e
mov dword [ebp - 0xac], 0
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x78], ecx
lea edx, [ebp - 0x58]
push edx
push 0x50
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41827c
cmp dword [ebp - 0x58], 0x50
je 0x4182ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x88]
push eax
push str.ReadProcessMemory_failed__remote_exception_record_x__error_d_n
lea ecx, [ebp - 0x44]
push ecx
call fcn.004043f0
add esp, 0x10
lea ecx, [ebp - 0x44]
call fcn.00403a90
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00403900
mov eax, dword [ebp - 0xb4]
jmp 0x418677
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
cmp dword [eax + 8], 0
je 0x418363
push 0x50
call fcn.0046625a
add esp, 4
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0x74], ecx
lea edx, [ebp - 0x58]
push edx
push 0x50
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x41831f
cmp dword [ebp - 0x58], 0x50
je 0x41834f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 8]
push edx
push str.ReadProcessMemoryfailed__remote_exception_record_x__error___d_n
lea eax, [ebp - 0x44]
push eax
call fcn.004043f0
add esp, 0x10
lea ecx, [ebp - 0x44]
call fcn.00403a90
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x418363
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x74]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x60], eax
jmp 0x4182d4
push 8
call fcn.0046625a
add esp, 4
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x78]
mov dword [edx], eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0xb0]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0xf0], ecx
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0xec], edx
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0x80], 0
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0xffffffff
jne 0x418409
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xd4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00403900
mov eax, dword [ebp - 0xd4]
jmp 0x418677
mov dword [ebp - 0x54], 0x1965
call fcn.00413540
mov ecx, eax
call fcn.00413670
mov dword [ebp - 0x8c], eax
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x4c]
or edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [0x5370a4]
push ecx
call fcn.004195f0
add esp, 8
movzx edx, al
test edx, edx
jne 0x4184e9
call fcn.00413540
mov ecx, eax
call fcn.00413670
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x90]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x4c]
or edx, 2
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [0x5370a8]
push ecx
call fcn.004195f0
add esp, 8
movzx edx, al
test edx, edx
jne 0x4184e9
mov dword [ebp - 0x94], 0
jmp 0x4184f3
mov dword [ebp - 0x94], 1
mov al, byte [ebp - 0x94]
mov byte [ebp - 0x59], al
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
and ecx, 2
je 0x418517
and dword [ebp - 0x4c], 0xfffffffd
lea ecx, [ebp - 0x40]
call fcn.00409d80
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x4c]
and edx, 1
je 0x418532
and dword [ebp - 0x4c], 0xfffffffe
lea ecx, [ebp - 0x28]
call fcn.00409d80
movzx eax, byte [ebp - 0x59]
test eax, eax
je 0x418543
mov ecx, dword [ebp - 0x54]
or ecx, 1
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0xa4]
call fcn.004037a0
mov byte [ebp - 4], 4
push 0x507324
lea ecx, [ebp - 0x98]
call fcn.00403720
mov byte [ebp - 4], 5
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0x98]
push eax
call fcn.0041a620
mov ecx, eax
call fcn.00405aa0
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
call fcn.00403900
cmp dword [ebp - 0xe4], 0
je 0x4185b0
mov ecx, dword [ebp - 0x54]
or ecx, 2
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
or edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x50]
movzx ecx, byte [eax]
test ecx, ecx
je 0x4185c6
mov edx, dword [ebp - 0x54]
or edx, 0x1000
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x64], 0
je 0x4185da
lea eax, [ebp - 0xf0]
mov dword [ebp - 0x9c], eax
jmp 0x4185e4
mov dword [ebp - 0x9c], 0
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], ecx
push 0
push 0
mov edx, dword [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x80], 0
jne 0x418634
push str.write_dump_file_failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0xd8], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.00403900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00403900
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046621a
mov esp, ebp
pop ebp
ret 4