Function at 0x4186a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7988
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x5381f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 8], 0
jne 0x4186e0
jmp 0x418b38
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x418826
lea ecx, [ebp - 0x1c]
call fcn.004037a0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x10]
push ecx
push str.Open_process__d_failed__error___d_n
lea edx, [ebp - 0x1c]
push edx
call fcn.004043f0
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.00403a90
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0xa4]
push eax
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x50]
call fcn.00406890
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + 4]
call edx
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.00409eb0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x418803
lea ecx, [ebp - 0xac]
push ecx
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x58]
call fcn.004068b0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x164]
call fcn.004091f0
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x60]
call fcn.00406500
push eax
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x164]
call fcn.00409f20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.00409eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00403900
jmp 0x418b38
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 - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x41895f
lea ecx, [ebp - 0xb4]
push ecx
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x68]
call fcn.00406890
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.00409eb0
movzx ecx, byte [ebp - 0xe]
test ecx, ecx
je 0x418950
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
lea edx, [ebp - 0xbc]
push edx
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x70]
call fcn.004068b0
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x74]
push ecx
push str.__failed__error_
lea edx, [ebp + 8]
push edx
push str.Create_file__
lea ecx, [ebp - 0x1fc]
call fcn.004091f0
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x7c]
call fcn.00419580
mov ecx, eax
call fcn.004195c0
mov ecx, eax
call fcn.00419540
mov ecx, eax
call fcn.004195a0
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1fc]
call fcn.00409f20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.00409eb0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x418b38
mov dword [ebp - 0x14], 0x1965
lea ecx, [ebp - 0x48]
call fcn.004037a0
mov dword [ebp - 4], 7
push str.__full
lea ecx, [ebp - 0x3c]
call fcn.00403720
mov byte [ebp - 4], 8
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.0041a620
mov ecx, eax
call fcn.00405aa0
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.00403900
cmp dword [ebp - 0x80], 0
je 0x4189c1
mov ecx, dword [ebp - 0x14]
or ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
or edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
test ecx, ecx
je 0x4189d7
mov edx, dword [ebp - 0x14]
or edx, 0x1000
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], 0
jne 0x418b17
lea edx, [ebp - 0xc4]
push edx
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x88]
call fcn.00406890
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x40]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 0xf], al
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xc4]
call fcn.00409eb0
movzx ecx, byte [ebp - 0xf]
test ecx, ecx
je 0x418b17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], eax
lea edx, [ebp - 0xcc]
push edx
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x90]
call fcn.004068b0
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x94]
push ecx
push str.Write_dump_failed__error_
lea ecx, [ebp - 0x294]
call fcn.004091f0
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], edx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x9c]
call fcn.00419560
mov ecx, eax
call fcn.004195a0
push eax
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x44]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x294]
call fcn.00409f20
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xcc]
call fcn.00409eb0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00403900
xor edx, edx
jne 0x4186d2
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4