Function at 0x447640
Capabilities:
Print debug messages
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x4ac110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + edi + 0x38]
mov ebx, dword [eax + 4]
mov ecx, ebx
mov dword [ebp - 0x450], ebx
mov eax, dword [ebx]
call dword [eax + 4]
lea eax, [ebp - 0x454]
push eax
call fcn.00405730
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 0x450], al
test ebx, ebx
je 0x4476a9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
test eax, eax
je 0x4476a9
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [ebp - 0x450]
lea ecx, [edi + 8]
call fcn.00415ae0
lea ecx, [edi + 8]
call fcn.00404c80
lea eax, [ebp - 0x434]
push eax
lea ecx, [edi + 8]
call fcn.00409460
mov eax, dword [0x4ae494]
test eax, eax
je 0x4476ff
lea ecx, [ebp - 0x434]
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 0x447a9d
test byte [0x4ac054], 2
je 0x447725
cmp dword [ebp - 0x420], 0x10
lea eax, [ebp - 0x434]
cmovae eax, dword [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x44772a
cmp dword [edi], 2
jl 0x447764
cmp dword [ebp - 0x420], 0x10
lea eax, [ebp - 0x434]
cmovae eax, dword [ebp - 0x434]
push eax
push 0x491a5c
push 2
call fcn.0045d346
add esp, 4
push eax
call fcn.0040f6c0
push 2
call fcn.0045d346
push eax
call fcn.0045d879
add esp, 0x14
test byte [0x4ac054], 1
je 0x447840
push 0
push 0
call fcn.00448730
add esp, 8
cmp dword [0x4ae4a4], 0
jne 0x447796
push 0xffffffffffffffff
push dword [0x4ae49c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4477a1
mov ecx, dword [0x4ae498]
call fcn.0044f280
call fcn.00448920
test al, al
je 0x44781e
push 2
push 0
push 0
push dword [0x4ae484]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00406180
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.00419e60
mov ecx, eax
call fcn.0041a070
cmp dword [ebp - 0x408], 0x10
lea ecx, [ebp - 0x450]
push 0
push ecx
push dword [ebp - 0x40c]
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push eax
push dword [0x4ae484]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x41c]
call fcn.00406510
cmp dword [0x4ae4a4], 0
jne 0x447835
push dword [0x4ae49c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x447840
mov ecx, dword [0x4ae498]
call fcn.0044f290
mov eax, dword [edi]
cmp eax, 4
jne 0x4478ce
mov ecx, 0x400
lea eax, [ebp - 0x434]
cmp dword [ebp - 0x424], ecx
cmovb ecx, dword [ebp - 0x424]
cmp dword [ebp - 0x420], 0x10
push ecx
cmovae eax, dword [ebp - 0x434]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.004599b0
lea eax, [ebp - 0x404]
push eax
call fcn.00451050
add esp, 0x10
call fcn.00451020
test al, al
jne 0x4478c4
cmp dword [0x4ae48c], 0
je 0x4478c4
lea eax, [ebp - 0x41c]
push eax
lea ecx, [edi + 8]
call fcn.00409460
push eax
call dword [0x4ae48c]
add esp, 4
lea ecx, [ebp - 0x41c]
jmp 0x447a98
call fcn.00451030
jmp 0x447a9d
cmp eax, 3
jne 0x447a9d
cmp dword [0x4ae490], 0
lea ecx, [edi + 8]
je 0x447904
lea eax, [ebp - 0x41c]
push eax
call fcn.00409460
push eax
call dword [0x4ae490]
add esp, 4
lea ecx, [ebp - 0x41c]
jmp 0x447a98
lea eax, [ebp - 0x44c]
push eax
call fcn.00409460
mov esi, eax
cmp dword [esi + 0x10], 0
lea ebx, [esi + 0x10]
je 0x447a92
cmp byte [0x4ae48b], 0
je 0x447a92
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0045a65b
add esp, 8
test eax, eax
je 0x44795b
xor ecx, ecx
mov word [eax + 2], cx
push str.debug_message.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046d58c
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x44797c
mov esi, dword [esi]
mov eax, dword [ebx]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x454], esi
push eax
call fcn.00450ec0
add esp, 8
cmp dword [ebp - 0x40c], 0
je 0x447a87
cmp dword [ebp - 0x408], 8
lea ecx, [ebp - 0x464]
push ecx
lea ecx, [ebp - 0x4a8]
mov dword [ebp - 0x4a8], 0x44
push ecx
push 0
push 0
push 0
push 0
push 0
xorps xmm0, xmm0
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push 0
push eax
lea eax, [ebp - 0x20c]
movlpd qword [ebp - 0x4a4], xmm0
push eax
movlpd qword [ebp - 0x49c], xmm0
movlpd qword [ebp - 0x494], xmm0
movlpd qword [ebp - 0x48c], xmm0
movlpd qword [ebp - 0x484], xmm0
movlpd qword [ebp - 0x47c], xmm0
movlpd qword [ebp - 0x474], xmm0
movlpd qword [ebp - 0x46c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x447a60
push 0xffffffffffffffff
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x460]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x464]
call esi
jmp 0x447a87
cmp dword [ebp - 0x408], 8
lea eax, [ebp - 0x41c]
push 0x40010
cmovae eax, dword [ebp - 0x41c]
push str.Fatal_error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x41c]
call fcn.00412b60
lea ecx, [ebp - 0x44c]
call fcn.00406510
mov ecx, dword [ebp - 0x420]
cmp ecx, 0x10
jb 0x447ad3
mov edx, dword [ebp - 0x434]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x447ac9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447b40
push ecx
push edx
call fcn.00456cbd
add esp, 8
push dword [edi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi + 8]
lea esi, [edi + 0x58]
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x4a11fc
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [esi + ecx - 0x54], eax
lea ecx, [esi - 0x4c]
call fcn.00403520
mov eax, dword [esi - 0x50]
push esi
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x49342c
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 0x54], eax
mov dword [esi], vtable.std::ios_base.0
call fcn.0045602d
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00457138
mov esp, ebp
pop ebp
ret
call fcn.0045c13e
int3