Function at 0x4041a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a0cd
mov eax, dword fs:[0]
push eax
sub esp, 0x56c
mov eax, dword [0x5e3fe4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4c0], 0
mov dword [ebp - 0x570], 0x5c3498
mov dword [ebp - 0x500], 0
mov dword [ebp - 0x4e0], 0
mov dword [ebp - 0x4dc], 0
mov dword [ebp - 0x4d8], 0
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x56c]
push eax
lea ecx, [ebp - 0x508]
mov dword [ebp - 0x4c0], 1
mov dword [ebp - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x50c], 0x60
call fcn.00405c80
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x570]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x570]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x574], eax
lea ecx, [ebp - 0x56c]
call fcn.004059d0
mov dword [ebp - 4], 3
test esi, esi
je 0x40428c
cmp word [esi], 0
jne 0x404297
lea ecx, [ebp - 0x498]
call fcn.004039a0
test byte [0x5ed3e8], 8
jne 0x40434e
test esi, esi
je 0x4042ae
cmp word [esi], 0
jne 0x4042b4
lea esi, [ebp - 0x498]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x570]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x570]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x574], eax
lea ecx, [ebp - 0x56c]
call fcn.00404ff0
mov eax, dword [ebp - 0x570]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x570]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x574], eax
mov dword [ebp - 4], 4
lea eax, [ebp - 0x508]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.005500f1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054e183
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x298]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x298]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404370
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
js 0x4043a0
nop word [eax + eax]
cmp word [ebp + eax*2 - 0x298], 0x2e
je 0x4043a0
sub eax, 1
jns 0x404390
lea eax, [eax*2 + 2]
cmp eax, 0x208
jae 0x404551
xor ecx, ecx
mov word [ebp + eax - 0x298], cx
lea ecx, [ebp - 0x298]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4043c5
mov eax, dword [0x5c3430]
mov dword [ecx], eax
mov eax, dword [0x5c3434]
push ecx
mov dword [ecx + 4], eax
lea eax, [ebp - 0x298]
push 0xa
push eax
lea ecx, [ebp - 0x56c]
call fcn.00405890
test eax, eax
lea ecx, [ebp - 0x570]
mov eax, dword [ebp - 0x570]
mov eax, dword [eax + 4]
je 0x404419
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x40442d
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.004037a0
lea eax, [ebp - 0x578]
push eax
call fcn.00558c74
add esp, 4
lea eax, [ebp - 0x578]
push eax
lea eax, [ebp - 0x4bc]
push eax
call fcn.00558f94
lea eax, [ebp - 0x4bc]
push eax
push 0x5c3438
lea eax, [ebp - 0x90]
push 0x40
push eax
call fcn.0055a21f
add esp, 0x18
lea edx, [ebp - 0x90]
lea ecx, [ebp - 0x570]
call fcn.00405d40
test esi, esi
je 0x40448f
cmp word [esi], 0
jne 0x404495
lea esi, [ebp - 0x498]
mov edx, esi
lea ecx, [ebp - 0x570]
call fcn.00405d40
mov edx, 0x5c3468
lea ecx, [ebp - 0x570]
call fcn.00405d40
lea ecx, [ebp - 0x56c]
call fcn.004057a0
test eax, eax
jne 0x4044ec
mov eax, dword [ebp - 0x570]
lea ecx, [ebp - 0x570]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004037a0
mov eax, dword [ebp - 0x570]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x570]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x574], eax
lea ecx, [ebp - 0x56c]
call fcn.00404ff0
mov eax, dword [ebp - 0x570]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x570]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x574], eax
mov dword [ebp - 4], 5
jmp 0x40431b
call fcn.0054e504
int3