Function at 0x41ae80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d00f3
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x51452c]
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
cmp dword [edi + 8], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], 0
je 0x41b445
push dword [edi + 0x10]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x7c], esi
test esi, esi
jne 0x41b006
call fcn.0040cb80
mov ecx, eax
test ecx, ecx
je 0x41b466
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi + 0x10]
lea eax, [ebp - 0x7c]
push str.Open_process__d_failed__error___d_n
push eax
call fcn.0040ca80
mov esi, dword [ebp - 0x7c]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.004563e0
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41afe3
push 0x23
push str.ExceptionReportExceptionReport.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.00417b10
push 3
push 0x4dfdcc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00417b10
mov byte [ebp - 4], 2
call fcn.004563e0
mov ebx, eax
lea ecx, [ebp - 0x11c]
push 0xe5
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00411810
mov edi, eax
test esi, esi
mov byte [ebp - 4], 3
mov eax, 0x4df984
cmovne eax, esi
push eax
push edi
call fcn.00410a70
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x11c]
call fcn.00412fa0
lea ecx, [ebp - 0x40]
call fcn.004123e0
lea ecx, [ebp - 0x28]
call fcn.004123e0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41b445
mov ecx, dword [esi]
push esi
jmp 0x41b440
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
jne 0x41b128
call fcn.004563e0
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41b11c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x23
push str.ExceptionReportExceptionReport.cpp
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov ebx, eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.00417b10
push 3
push 0x4dfdcc
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00417b10
mov byte [ebp - 4], 5
call fcn.004563e0
mov edi, eax
lea ecx, [ebp - 0x11c]
push 0xec
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00411810
mov esi, eax
push str.Create_file__
push esi
mov byte [ebp - 4], 6
call fcn.00412e60
mov ecx, dword [ebp - 0x78]
mov eax, 0x4df984
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.00410a70
push str.__failed__error_
push esi
call fcn.00412e60
add esp, 0x18
mov ecx, esi
push ebx
call fcn.00419cb0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x11c]
call fcn.00412fa0
lea ecx, [ebp - 0x58]
call fcn.004123e0
lea ecx, [ebp - 0x70]
call fcn.004123e0
mov esi, dword [ebp - 0x7c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41b445
call fcn.0040cb80
mov ecx, eax
test ecx, ecx
je 0x41b470
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x84], eax
mov dword [ebp - 4], 7
call fcn.0040cb80
mov ecx, eax
test ecx, ecx
je 0x41b47a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x74], eax
mov eax, str.__full
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x74]
test eax, 0xffff0000
jne 0x41b184
movzx eax, ax
push eax
call fcn.0040d7f0
jmp 0x41b190
push 6
push str.__full
call fcn.0040dae0
mov ecx, dword [0x516f48]
mov byte [ebp - 4], 9
test ecx, ecx
jne 0x41b1fb
push 0x5131f0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x516f48], 0
jne 0x41b1e2
push 0x1c
call fcn.004665dc
mov esi, eax
add esp, 4
mov dword [ebp - 0x78], esi
test esi, esi
je 0x41b1d7
lea eax, [esi + 4]
mov dword [esi], vtable._BaseModule::CCriticalSection.0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x41b1d9
xor esi, esi
mov dword [0x516f48], esi
mov esi, dword [ebp - 0x7c]
push 0x5131f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x516f48]
test ecx, ecx
jne 0x41b1fb
xor eax, eax
jmp 0x41b251
mov eax, dword [0x516f44]
test eax, eax
jne 0x41b251
mov eax, dword [ecx]
push ecx
call dword [eax]
cmp dword [0x516f44], 0
jne 0x41b241
push 0x48
call fcn.004665dc
add esp, 4
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x41b232
mov ecx, eax
call fcn.0040ed00
mov ecx, eax
jmp 0x41b234
xor ecx, ecx
mov byte [ebp - 4], 9
xchg dword [ebp - 0x78], eax
mov dword [0x516f44], ecx
mov eax, dword [0x516f48]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [0x516f44]
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
call fcn.0040f490
mov edx, dword [ebp - 0x74]
or ebx, 0xffffffff
mov dword [ebp - 0x78], eax
add edx, 0xfffffff0
mov byte [ebp - 4], 7
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b287
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x78], 0
mov eax, 0x147
mov ecx, 0x145
cmovne ecx, eax
push 0
push 0
mov eax, ecx
or eax, 0x1000
cmp byte [edi], 0
push 0
cmove eax, ecx
push eax
push dword [ebp - 0x80]
mov eax, dword [edi + 8]
push dword [edi + 0x10]
push esi
call eax
push dword [ebp - 0x80]
mov edi, eax
mov dword [ebp - 0x74], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x41b41c
call fcn.004563e0
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x41b41c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x23
push str.ExceptionReportExceptionReport.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], edi
mov ebx, eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00417b10
push 3
push 0x4dfdcc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00417b10
mov byte [ebp - 4], 0xc
call fcn.004563e0
mov edi, eax
lea ecx, [ebp - 0x1b4]
push 0x102
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00411810
mov esi, eax
push str.Write_dump_failed__error_
push esi
mov byte [ebp - 4], 0xd
call fcn.00412e60
add esp, 8
mov ecx, esi
push ebx
call fcn.00419cb0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x1b4]
call fcn.00412fa0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x41b3ba
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41b3b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b484
push edx
push ecx
call fcn.0046617e
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x41b404
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41b3fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b489
push edx
push ecx
call fcn.0046617e
add esp, 8
mov esi, dword [ebp - 0x7c]
or ebx, 0xffffffff
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x84]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41b445
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x74]
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.0046659c
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040c8c0
push 0x80004005
call fcn.0040c8c0
push 0x80004005
call fcn.0040c8c0
call fcn.00487208
call fcn.00487208
int3