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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x450
mov esi, ecx
mov eax, dword [0x4a3ecc]
xor eax, ebp
mov dword [esp + 0x448], eax
mov dword [ecx], 0x48b8c0
add ecx, 0x10
lea edi, [esp + 0x30]
mov dword [esp + 0x18], ecx
push edi
call fcn.0041d380
mov eax, dword [edi + 8]
add eax, dword [edi]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 8], esi
mov eax, dword [esi + eax + 0x40]
mov ebx, dword [eax + 4]
mov dword [edi + 4], ebx
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4893dc]
mov ecx, ebx
call esi
push edi
call fcn.0040a2a0
add esp, 4
mov esi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x4893dc]
mov ecx, esi
push 0xa
call ebx
mov byte [esp + 0xc], al
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x41ced6
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4893dc]
mov ecx, ebx
call esi
test eax, eax
je 0x41ced6
mov ebx, eax
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4893dc]
mov ecx, ebx
push 1
call esi
movsx eax, byte [esp + 0xc]
mov esi, dword [esp + 0x18]
mov ecx, esi
push eax
call fcn.0041eb70
mov ecx, esi
call fcn.00408920
mov eax, dword [esp + 8]
lea ecx, [eax + 0x14]
xor eax, eax
dec eax
lea esi, [esp + 0x430]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi], xmm0
mov dword [esp + 0x18], ecx
push esi
call fcn.0041e900
test byte [0x4a3440], 0x19
jne 0x41d2db
mov ecx, dword [0x4a5510]
test ecx, ecx
je 0x41cf6d
mov eax, dword [esp + 8]
mov edx, dword [eax + 8]
mov dword [esp + 0xc], edx
mov ebx, dword [eax + 0xa8]
mov edi, dword [eax + 0xb0]
mov eax, dword [eax + 0xac]
mov dword [esp + 0x14], eax
call dword [0x4893dc]
push esi
push ebx
push edi
push dword [esp + 0x20]
push dword [esp + 0x1c]
call ecx
add esp, 0x14
test al, al
jne 0x41d1ea
mov eax, dword [0x4a3074]
test al, 2
je 0x41cf93
cmp dword [esp + 0x444], 0x10
jb 0x41cf87
mov esi, dword [esp + 0x430]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x4a3074]
test al, 4
jne 0x41cfa6
mov ecx, dword [esp + 8]
cmp dword [ecx + 8], 2
jl 0x41cfef
cmp eax, 1
ja 0x41cfef
mov esi, dword [esp + 0x440]
cmp dword [esp + 0x444], 0x10
jb 0x41cfc0
mov ebx, dword [esp + 0x430]
jmp 0x41cfc7
lea ebx, [esp + 0x430]
test esi, esi
je 0x41cfef
xor edi, edi
mov eax, esi
sub eax, edi
lea ecx, [ebx + edi]
push eax
push ecx
push 2
call fcn.00466803
add esp, 0xc
test eax, eax
js 0x41cfea
add edi, eax
cmp esi, edi
ja 0x41cfcd
mov eax, dword [0x4a3074]
test al, 1
je 0x41d03a
call fcn.0041c3f0
test al, al
je 0x41d03a
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x440]
cmp dword [esp + 0x444], 0x10
jb 0x41d01e
mov ecx, dword [esp + 0x430]
jmp 0x41d025
lea ecx, [esp + 0x430]
push 0
lea edx, [esp + 0x34]
push edx
push eax
push ecx
push dword [0x4a551c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
cmp dword [eax + 8], 3
jne 0x41d1ea
mov ecx, dword [0x4a54d4]
test ecx, ecx
je 0x41d07a
mov eax, dword [esp + 0x440]
cmp dword [esp + 0x444], 0x10
jb 0x41d06c
mov edx, dword [esp + 0x430]
jmp 0x41d073
lea edx, [esp + 0x430]
push eax
push edx
call fcn.00419380
mov esi, 0x400
push esi
push 0xff
lea eax, [esp + 0x38]
push eax
call fcn.0045d780
add esp, 0xc
cmp dword [esp + 0x444], 0x10
jb 0x41d0a5
mov eax, dword [esp + 0x430]
jmp 0x41d0ac
lea eax, [esp + 0x430]
push esi
push eax
lea esi, [esp + 0x38]
push esi
call fcn.0044be10
add esp, 0xc
push esi
call fcn.0041e100
add esp, 4
mov eax, dword [0x4a5530]
mov ecx, dword [0x4a6954]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x41d302
mov eax, dword [0x4a5528]
cmp eax, dword [0x4a552c]
je 0x41d377
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [0x4a5530]
mov ecx, dword [0x4a6954]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x41d33a
mov eax, dword [0x4a552c]
test eax, eax
mov ecx, dword [0x4a5524]
cmove eax, ecx
dec eax
cmp ecx, eax
jb 0x41d37a
shl eax, 2
add eax, dword [0x4a5520]
lea esi, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0044bdc0
mov eax, dword [esi]
test eax, eax
je 0x41d1e1
cmp dword [esp + 0x444], 0x10
jb 0x41d16a
mov ebx, dword [esp + 0x430]
jmp 0x41d171
lea ebx, [esp + 0x430]
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov edi, ebx
add edi, esi
je 0x41d37d
push edi
call fcn.00465230
add esp, 4
mov edx, dword [esp + 8]
mov ecx, dword [edx + 0xa8]
sub esi, ecx
add ebx, ecx
mov ecx, dword [edx + 0xac]
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 0xb0]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x28]
mov dword [ecx], ebx
mov dword [ecx + 4], esi
lea ebx, [esp + 0x20]
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 4]
call dword [0x4893dc]
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x18]
push dword [esp + 0x20]
push esi
call ecx
add esp, 0x14
lea ecx, [esp + 0x1c]
call fcn.0044bd90
mov eax, dword [esp + 0x444]
cmp eax, 0x10
jb 0x41d22a
mov ecx, dword [esp + 0x430]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x41d220
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41d372
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0045b9ca
add esp, 8
mov esi, dword [esp + 8]
lea ecx, [esi + 0xb4]
call fcn.0044cb30
lea edi, [esi + 0x60]
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 4]
mov dword [esi + eax + 0x10], 0x48b94c
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x50]
mov dword [esi + eax + 0xc], ecx
mov dword [esi + 0x14], 0x48b960
mov ecx, dword [esp + 0x18]
call fcn.0041e000
mov dword [esi + 0x14], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov ebx, dword [esi + 0x48]
test ebx, ebx
je 0x41d2b6
mov dword [esp + 8], edi
mov esi, dword [ebx + 4]
test esi, esi
je 0x41d2a9
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x4893dc]
mov ecx, esi
call edi
test eax, eax
je 0x41d2a9
mov esi, eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x4893dc]
mov ecx, esi
push 1
call edi
push ebx
call fcn.0045c216
add esp, 4
mov edi, dword [esp + 8]
mov dword [edi], vtable.std::ios_base.0
push edi
call fcn.0045aa41
add esp, 4
mov ecx, dword [esp + 0x448]
xor ecx, ebp
call fcn.0045be32
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
mov ecx, str.LogMessage
xor edx, edx
lea eax, [esp + 0x30]
push eax
push 0
call fcn.0041ecd0
add esp, 8
jmp 0x41cf24
push 0x4a5530
call fcn.0045bd5c
add esp, 4
cmp dword [0x4a5530], 0xffffffff
jne 0x41d0e5
pxor xmm0, xmm0
movdqu xmmword [0x4a5520], xmm0
push 0x4a5530
call fcn.0045bd12
add esp, 4
jmp 0x41d0e5
push 0x4a5530
call fcn.0045bd5c
add esp, 4
cmp dword [0x4a5530], 0xffffffff
jne 0x41d11f
pxor xmm0, xmm0
movdqu xmmword [0x4a5520], xmm0
push 0x4a5530
call fcn.0045bd12
add esp, 4
jmp 0x41d11f
call fcn.00460d04
int3
int3
int3