Function at 0x42ed50
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x477edc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x484]
push eax
mov dword [ebp - 0x450], edi
lea ecx, [edi + 8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_ostream_char__struct_std::char_traits_char__::tellp_void_]
push 0x42eba0
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov dword [ebp - 0x44c], ecx
lea ecx, [edi + 8]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 8]
call fcn.00430050
test byte [0x4773b0], 0x19
je 0x42eeb6
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x1c]
push dword [edi + 0xa0]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x464]
push eax
call fcn.00434160
push 0x24
call fcn.00455cc4
add esp, 0x14
test eax, eax
je 0x42ee13
push dword [edi + 0xa8]
mov ecx, eax
push dword [ebp - 0x460]
push dword [ebp - 0x464]
push dword [edi + 0xa4]
call fcn.00439110
jmp 0x42ee15
xor eax, eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x454], 0
call sub.KERNEL32.dll_GetCurrentThreadId
mov esi, eax
lea eax, [ebp - 0x46c]
push eax
call fcn.004386d0
mov eax, dword [ebp - 0x448]
push 0x8008
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x46c]
mov word [ebp - 0x3c], 0x801
push eax
push esi
push 0
push 0
push 0
push 0
push 0
push str.LogMessage
push 0x4773b0
push 0x49
mov dword [ebp - 0x38], str.message
call fcn.0043c480
mov dl, byte [ebp - 0x3c]
add esp, 0x34
xor esi, esi
test dl, dl
je 0x42eeb6
cmp byte [ebp + esi - 0x3b], 8
jne 0x42eeae
mov ecx, dword [ebp + esi*8 - 0x2c]
test ecx, ecx
je 0x42eeae
mov eax, dword [ecx]
push 1
call dword [eax]
mov dl, byte [ebp - 0x3c]
inc esi
movzx eax, dl
cmp esi, eax
jb 0x42ee96
mov eax, dword [0x478260]
test eax, eax
je 0x42eee4
lea ecx, [ebp - 0x1c]
push ecx
push dword [edi + 0xa0]
push dword [edi + 0xa8]
push dword [edi + 0xa4]
push dword [edi]
call eax
add esp, 0x14
test al, al
jne 0x42f0d5
mov eax, dword [0x477044]
test al, 2
je 0x42ef04
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x477044]
test al, 4
jne 0x42ef14
cmp dword [edi], 2
jl 0x42ef4f
test eax, 0xfffffffe
jne 0x42ef4f
cmp dword [ebp - 8], 0x10
lea edi, [ebp - 0x1c]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmovae edi, dword [ebp - 0x1c]
push 2
call esi
push eax
push 1
push dword [ebp - 0xc]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push 2
call esi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [0x477044]
add esp, 0x1c
mov edi, dword [ebp - 0x450]
test al, 1
je 0x42ef80
call fcn.0042f7d0
test al, al
je 0x42ef80
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x454]
push 0
push ecx
push dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [0x478244]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi], 3
jne 0x42f0d5
mov ecx, dword [0x478280]
test ecx, ecx
je 0x42efb0
sub esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 0x10
mov edx, esp
cmovae eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
call fcn.00436d90
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push 0x400
cmovae eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x440]
mov dword [ebp - 0x444], 0xbedead01
push eax
mov dword [ebp - 0x40], 0x5050dead
call fcn.00435190
lea eax, [ebp - 0x444]
push eax
call fcn.004117b0
mov ecx, dword [0x47825c]
add esp, 0x10
cmp dword [0x478258], ecx
je 0x42f0d4
mov eax, dword [0x478254]
test ecx, ecx
jne 0x42f00d
lea ecx, [eax - 1]
jmp 0x42f00e
dec ecx
cmp ecx, eax
jbe 0x42f013
int3
mov eax, dword [0x478250]
lea eax, [eax + ecx*4]
push eax
lea ecx, [ebp - 0x448]
call fcn.00439080
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x42f0c7
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x44c]
mov dword [ebp - 0x450], ecx
jne 0x42f052
xor esi, esi
jmp 0x42f067
xor esi, esi
cmp byte [ecx], 0
je 0x42f067
nop dword [eax]
inc esi
cmp byte [esi + ecx], 0
jne 0x42f060
cmp dword [ebp - 8], 0x10
lea edx, [ebp - 0x1c]
mov ecx, dword [edi + 0xa0]
cmovae edx, dword [ebp - 0x1c]
sub dword [ebp - 0x44c], ecx
add edx, ecx
mov ecx, dword [ebp - 0x450]
mov dword [ebp - 0x464], ecx
mov ecx, dword [ebp - 0x44c]
mov dword [ebp - 0x458], ecx
lea ecx, [ebp - 0x464]
push ecx
lea ecx, [ebp - 0x45c]
mov dword [ebp - 0x460], esi
push ecx
push dword [edi + 0xa8]
mov dword [ebp - 0x45c], edx
push dword [edi + 0xa4]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 0x14
lea ecx, [ebp - 0x448]
call fcn.004390d0
jmp 0x42f0d5
int3
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x42f10b
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42f101
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42f101
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00455eef
add esp, 8
lea ecx, [edi + 0xb0]
call fcn.00432da0
mov eax, dword [edi + 8]
lea ecx, [edi + 0xc]
mov eax, dword [eax + 4]
mov dword [eax + edi + 8], 0x46c0f0
mov eax, dword [edi + 8]
mov edx, dword [eax + 4]
lea eax, [edx - 0x50]
mov dword [edx + edi + 4], eax
call fcn.0042eca0
lea ecx, [edi + 0x10]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [edi + 0x58]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00455cf4
mov esp, ebp
pop ebp
ret