Function at 0x40e1f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc090
mov eax, dword fs:[0]
push eax
sub esp, 0x158
push ebx
push esi
push edi
mov eax, dword [0x516240]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], 0
cmp dword [esi + 8], 0
mov dword [ebp - 0x28], 0
je 0x40e7d8
push dword [esi + 0x10]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x40e358
call fcn.00404e30
mov ecx, eax
test ecx, ecx
je 0x40e7ef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 0x10]
lea eax, [ebp - 0x14]
push str.Open_process__d_failed__error___d_n
push eax
call fcn.0040d150
mov esi, dword [ebp - 0x14]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x20]
push eax
call fcn.0041c530
add esp, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edi, dword [ebp - 0x1c]
or ebx, 0xffffffff
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 0
test edi, edi
je 0x40e2dd
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x40e2dd
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x40e2dd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp byte [ebp + 0xb], 0
je 0x40e338
lea eax, [ebp - 0x20]
push eax
call fcn.0041c530
add esp, 4
mov ebx, dword [eax]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.0040c980
mov edi, eax
test esi, esi
mov byte [ebp - 4], 3
mov eax, 0x4e97c0
cmovne eax, esi
push eax
push edi
call fcn.00402660
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [eax + 8]
lea ecx, [ebp - 0xc0]
call fcn.00404340
lea ecx, [ebp - 0x20]
call fcn.00403df0
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40e7d8
mov ecx, dword [esi]
push esi
jmp 0x40e7d3
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x40e467
lea eax, [ebp - 0x20]
push eax
call fcn.0041c530
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], 4
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x1c]
mov cl, al
mov byte [ebp - 0xd], cl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40e3d2
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x40e3d2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x40e3cf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov cl, byte [ebp - 0xd]
test cl, cl
je 0x40e45b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041c530
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x164]
mov dword [ebp - 4], 5
call fcn.0040c980
mov esi, eax
push str.Create_file__
push esi
mov byte [ebp - 4], 6
call fcn.0040cf40
mov ecx, dword [ebp + 8]
mov eax, 0x4e97c0
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.00402660
push str.__failed__error_
push esi
call fcn.0040cf40
add esp, 0x18
mov ecx, esi
push ebx
call fcn.0040cca0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x164]
call fcn.00404340
lea ecx, [ebp - 0x20]
call fcn.00403df0
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e7d8
call fcn.00404e30
mov ecx, eax
test ecx, ecx
je 0x40e7f9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 7
call fcn.00404e30
mov ecx, eax
test ecx, ecx
je 0x40e803
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, str.__full
mov byte [ebp - 4], 8
lea ecx, [ebp + 8]
test eax, 0xffff0000
jne 0x40e4c0
movzx eax, ax
push eax
call fcn.0040dc00
jmp 0x40e4cc
push 6
push str.__full
call fcn.004063e0
mov ecx, dword [0x5189b0]
mov byte [ebp - 4], 9
test ecx, ecx
jne 0x40e530
push 0x515114
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5189b0], 0
jne 0x40e51f
push 0x48
call fcn.0044ee7a
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x40e50c
mov ecx, eax
call fcn.004032b0
jmp 0x40e50e
xor eax, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x18]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x5189b0], eax
push 0x515114
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x5189b0]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00404ef0
mov edx, dword [ebp + 8]
or ebx, 0xffffffff
mov dword [ebp - 0x18], eax
add edx, 0xfffffff0
mov byte [ebp - 4], 7
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e561
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
mov ecx, 0x1967
push 0
push 0
push 0
mov eax, 0x1965
cmovne eax, ecx
push eax
push dword [ebp - 0x14]
mov eax, dword [esi + 8]
push dword [esi + 0x10]
push edi
call eax
push dword [ebp - 0x14]
mov esi, eax
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x40e7b2
lea eax, [ebp - 0x20]
push eax
call fcn.0041c530
add esp, 4
mov ecx, dword [eax]
mov byte [ebp - 4], 0xb
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [ebp - 0x1c]
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 7
test esi, esi
je 0x40e5e4
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x40e5e4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x40e5e1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp + 0xb]
test al, al
je 0x40e7b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
lea eax, [ebp - 0xcc]
push eax
call fcn.0041c530
add esp, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], 0x4e97b0
mov dword [ebp - 0x70], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
push 0
push 0
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x18], 1
call fcn.0040c1a0
mov eax, dword [ebp - 0xc0]
push 8
mov dword [ebp - 4], 0xe
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xc4], eax
mov dword [ebp - 0xbc], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0044ee7a
mov esi, eax
add esp, 4
test esi, esi
je 0x40e6a2
push 1
mov byte [ebp - 4], 0xf
call fcn.00425286
add esp, 4
mov dword [esi + 4], eax
jmp 0x40e6a4
xor esi, esi
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xbc], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 4
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0x10
push str.Write_dump_failed__error_
push eax
call fcn.0040cf40
add esp, 8
lea ecx, [ebp - 0xc0]
push dword [ebp + 8]
call fcn.0040cca0
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0xc0]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0xc0]
call fcn.00404340
mov esi, dword [ebp - 0xc8]
test esi, esi
je 0x40e7b2
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x40e7b2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x40e7b2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40e7d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
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.00404b20
push 0x80004005
call fcn.00404b20
push 0x80004005
call fcn.00404b20
int3