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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x440
mov eax, dword [0x520014]
xor eax, ebp
mov dword [esp + 0x438], eax
mov dword [ecx], 0x502954
lea edi, [ecx + 8]
mov eax, dword [ecx + 8]
mov edx, dword [eax + 4]
xor esi, esi
dec esi
mov dword [esp + 4], ecx
test byte [ecx + edx + 0x18], 5
mov dword [esp + 8], esi
jne 0x442286
mov ecx, dword [edi + edx + 0x18]
mov eax, dword [ecx]
sub esp, 0x14
movaps xmm0, xmmword [0x50a070]
movups xmmword [esp + 4], xmm0
lea ebx, [esp + 0x4c]
mov dword [esp], ebx
call dword [eax + 0xc]
mov eax, dword [ebx + 8]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
lea esi, [esp + 0x38]
push esi
call fcn.0046af90
mov ecx, esi
push 0x524658
call fcn.0046b850
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x1c]
mov ebx, eax
mov ecx, esi
call fcn.0046b0d0
movsx eax, bl
mov ecx, edi
push eax
call fcn.004111e0
mov dword [esp + 0x14], edi
mov ecx, edi
call fcn.00410470
lea ebx, [esp + 0x1c]
xor eax, eax
dec eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov eax, dword [esp + 4]
lea edi, [eax + 0xc]
mov ecx, edi
push ebx
call fcn.00411450
test byte [0x521f84], 0x19
jne 0x442417
mov eax, dword [0x524d34]
test eax, eax
je 0x442320
push ebx
mov ecx, dword [esp + 8]
push dword [ecx + 0x90]
push dword [ecx + 0x98]
push dword [ecx + 0x94]
push dword [ecx + 4]
call eax
add esp, 0x14
test al, al
jne 0x44239d
mov eax, dword [0x521ba0]
test al, 2
jne 0x442432
test al, 4
jne 0x442340
mov ecx, dword [esp + 4]
cmp dword [ecx + 4], 2
jl 0x442387
cmp eax, 1
ja 0x442387
mov ebx, edi
mov edi, 2
push edi
call fcn.0048e37f
add esp, 4
lea edx, [esp + 0x1c]
movzx ecx, byte [edx + 0xb]
test cl, cl
cmovs ecx, dword [edx + 4]
cmovs edx, dword [edx]
push eax
push 1
push ecx
push edx
call fcn.004a1780
add esp, 0x10
push edi
mov edi, ebx
call fcn.0048e37f
add esp, 4
push eax
call fcn.004a0816
add esp, 4
mov eax, dword [0x521ba0]
test al, 1
jne 0x44244e
mov eax, dword [esp + 4]
cmp dword [eax + 4], 3
je 0x44248e
cmp byte [esp + 0x27], 0
jns 0x4423b0
push dword [esp + 0x1c]
call fcn.00489982
add esp, 4
mov esi, dword [esp + 4]
lea ecx, [esi + 0xa0]
call fcn.004737c0
lea ebx, [esi + 0x40]
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x501f1c
mov dword [esi + 0xc], 0x501f30
cmp byte [esi + 0x37], 0
jns 0x4423ec
mov eax, dword [esp + 0x14]
push dword [eax + 0x24]
call fcn.00489982
add esp, 4
mov ecx, edi
call fcn.004648b0
mov ecx, edi
call fcn.004649a0
mov ecx, ebx
call fcn.004648a0
mov ecx, dword [esp + 0x438]
xor ecx, ebp
call fcn.0048a678
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.LogMessage
xor edx, edx
push ebx
push dword [esp + 8]
push 0
call fcn.004cc070
add esp, 0xc
jmp 0x4422f4
cmp byte [esp + 0x27], 0
jns 0x44243d
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x521ba0]
jmp 0x44232d
call fcn.004cba90
test al, al
je 0x44238f
lea ecx, [esp + 0x1c]
movzx eax, byte [ecx + 0xb]
test al, al
cmovs eax, dword [ecx + 4]
mov dword [esp + 0x38], 0xffffffff
cmovs ecx, dword [ecx]
push 0
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
push dword [0x524d40]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x44238f
mov dword [esp + 0x10], edi
mov ecx, dword [0x525aa4]
test ecx, ecx
je 0x4424ba
movzx eax, byte [esp + 0x27]
test al, al
jns 0x4424af
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
jmp 0x4424b3
lea edx, [esp + 0x1c]
push eax
push edx
call fcn.004db5d0
mov edi, 0x400
push edi
push 0xff
lea eax, [esp + 0x40]
push eax
call fcn.0048d770
add esp, 0xc
cmp byte [esp + 0x27], 0
jns 0x4424df
mov eax, dword [esp + 0x1c]
jmp 0x4424e3
lea eax, [esp + 0x1c]
push edi
push eax
lea esi, [esp + 0x40]
push esi
call fcn.00473e10
add esp, 0xc
push esi
call fcn.004649a0
add esp, 4
call fcn.004cbd20
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 0xc]
je 0x4425cc
mov dword [esp + 0x18], 0xffffffff
call fcn.004cbd20
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
test edx, edx
cmove edx, ecx
dec edx
cmp ecx, edx
jb 0x4425cf
shl edx, 2
add edx, dword [eax]
lea ebx, [esp + 0x18]
mov ecx, ebx
push edx
call fcn.0046d410
mov esi, dword [ebx]
test esi, esi
je 0x4425b0
cmp byte [esp + 0x27], 0
jns 0x442551
mov ebx, dword [esp + 0x1c]
jmp 0x442555
lea ebx, [esp + 0x1c]
mov edi, ebx
add edi, dword [esp + 8]
je 0x4425c2
push edi
call fcn.004a2ba0
add esp, 4
mov dword [esp + 0xc], eax
mov edx, dword [esp + 4]
mov ecx, dword [edx + 0x90]
mov eax, dword [esp + 8]
sub eax, ecx
add ebx, ecx
mov ecx, dword [edx + 0x94]
mov dword [esp + 8], ecx
mov edx, dword [edx + 0x98]
lea ecx, [esp + 0x30]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
lea ebx, [esp + 0x28]
mov dword [ebx], edi
mov eax, dword [esp + 0xc]
mov dword [ebx + 4], eax
push ebx
push ecx
push edx
push dword [esp + 0x14]
push esi
call dword [esi + 4]
add esp, 0x14
lea ecx, [esp + 0x18]
call fcn.0046d3f0
mov edi, dword [esp + 0x10]
jmp 0x44239d
mov dword [esp + 0xc], 0
jmp 0x44256a
int3
int3