Function at 0x473790
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, 0x450
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [esp + 0x448], eax
mov dword [ecx], 0x651b80
lea edi, [ecx + 8]
mov eax, dword [ecx + 8]
mov edx, dword [eax + 4]
test byte [ecx + edx + 0x18], 5
mov dword [esp + 0x18], ecx
je 0x4737dd
movaps xmm0, xmmword [0x64eb60]
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 8], 0xffffffff
jmp 0x473806
mov ecx, dword [edi + edx + 0x18]
mov eax, dword [ecx]
sub esp, 0x14
movaps xmm0, xmmword [0x64f070]
movups xmmword [esp + 4], xmm0
lea edx, [esp + 0x54]
mov dword [esp], edx
call dword [eax + 0xc]
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
lea esi, [esp + 0x40]
push esi
call fcn.00452880
mov ecx, esi
push 0x8fce78
call fcn.00463878
mov edx, dword [eax]
mov ecx, eax
push 0xa
call dword [edx + 0x1c]
mov ebx, eax
mov ecx, esi
call fcn.0045555c
movsx eax, bl
mov ecx, edi
push eax
call fcn.00453620
mov dword [esp + 0xc], edi
mov ecx, edi
call fcn.00452780
mov esi, dword [esp + 0x18]
lea ecx, [esi + 0xc]
lea edi, [esp + 0x24]
mov dword [esp + 0x1c], ecx
push edi
call fcn.0044a554
test byte [0x6f38e0], 0x19
jne 0x473adf
mov eax, dword [0x8fd538]
test eax, eax
je 0x4738ab
lea ecx, [esp + 0x24]
push ecx
push dword [esi + 0x90]
push dword [esi + 0x98]
push dword [esi + 0x94]
push dword [esi + 4]
call eax
add esp, 0x14
test al, al
je 0x4738ab
cmp byte [esp + 0x2f], 0
mov edi, dword [esp + 0xc]
jns 0x473a7c
jmp 0x473a70
mov eax, dword [0x6f3520]
test al, 2
mov edi, dword [esp + 0xc]
je 0x4738d5
cmp byte [esp + 0x2f], 0
jns 0x4738c5
mov eax, dword [esp + 0x24]
jmp 0x4738c9
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x6f3520]
test al, 1
je 0x47390c
call fcn.004730d0
test al, al
je 0x47390c
movzx eax, byte [esp + 0x2f]
test al, al
cmovs eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
cmovs ecx, dword [esp + 0x24]
push 0
lea edx, [esp + 0x44]
push edx
push eax
push ecx
push dword [0x8fd544]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi + 4], 3
jne 0x473959
mov ecx, dword [0x9001bc]
lea ebx, [esp + 0x24]
test ecx, ecx
je 0x47393a
movzx eax, byte [esp + 0x2f]
mov edx, ebx
test al, al
jns 0x473933
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push eax
push edx
call fcn.004b11c0
mov dword [esp + 0x40], 0xbedead01
mov dword [esp + 0x444], 0x5050dead
cmp byte [ebx + 0xb], 0
jns 0x473962
mov eax, dword [esp + 0x24]
jmp 0x473966
lea ebx, [esp + 0x24]
jmp 0x473a6a
lea eax, [esp + 0x24]
lea ecx, [esp + 0x44]
push 0x400
push eax
push ecx
call fcn.0047bc30
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00401e20
add esp, 4
mov ecx, dword [0x8fd558]
test cl, 1
je 0x473beb
mov eax, dword [0x8fd554]
cmp dword [0x8fd550], eax
je 0x473bfe
test cl, 1
je 0x473bd1
mov ecx, dword [0x8fd54c]
test eax, eax
jne 0x4739bb
mov eax, ecx
add eax, 0xffffffff
cmp ecx, eax
jb 0x473c01
shl eax, 2
add eax, dword [0x8fd548]
lea ecx, [esp + 0x20]
push eax
call fcn.0046afc0
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x473a5d
mov dword [esp + 4], ebx
cmp byte [ebx + 0xb], 0
jns 0x4739f1
mov ebx, dword [esp + 0x24]
jmp 0x4739f5
lea ebx, [esp + 0x24]
mov eax, dword [esp + 8]
add eax, ebx
test ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
je 0x473a12
push eax
call fcn.0061fdf0
add esp, 4
jmp 0x473a14
xor eax, eax
mov ecx, dword [esi + 0x90]
mov edi, dword [esp + 8]
sub edi, ecx
add ebx, ecx
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x98]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
lea ebx, [esp + 0x38]
push eax
push ebx
push edx
push ecx
mov eax, dword [esp + 0x24]
push eax
call dword [eax + 4]
add esp, 0x14
mov ebx, dword [esp + 4]
lea ecx, [esp + 0x20]
call fcn.0046afa0
mov edi, dword [esp + 0xc]
cmp byte [ebx + 0xb], 0
jns 0x473a7c
push dword [esp + 0x24]
call fcn.00517bd6
add esp, 4
lea ecx, [esi + 0xa0]
call fcn.004afbf0
lea ebx, [esi + 0x40]
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 8], 0x64d23c
mov dword [esi + 0xc], 0x64d240
cmp byte [esi + 0x37], 0
jns 0x473ab0
push dword [edi + 0x24]
call fcn.00517bd6
add esp, 4
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.00452414
mov ecx, esi
call fcn.00401e20
mov ecx, ebx
call fcn.0045240a
mov ecx, dword [esp + 0x448]
xor ecx, ebp
call fcn.00517c1a
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ebx, byte [esp + 0x2f]
test bl, bl
jns 0x473af0
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov eax, dword [esi + 0x90]
cmp ebx, eax
cmovb eax, ebx
add edi, eax
sub ebx, eax
push 0x18
call fcn.00517b56
add esp, 4
mov dword [esp + 4], eax
mov ecx, eax
push dword [esi + 0x98]
push ebx
push edi
push dword [esi + 0x94]
call fcn.004b18f0
call fcn.00484d80
mov ebx, eax
lea edi, [esp + 0x38]
push edi
call fcn.00492370
add esp, 4
mov word [esp + 0x40], 0x801
mov dword [esp + 0x44], str.message
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
sub esp, 0x30
lea eax, [esp + 0x70]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebx
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x2c], 0x8008
mov dword [esp + 0x1c], 0
mov dword [esp + 8], str.LogMessage
mov dword [esp + 4], 0x6f38e0
mov dword [esp], 0x49
call fcn.004960c0
add esp, 0x30
mov al, byte [esp + 0x40]
test al, al
je 0x47386b
xor edi, edi
jmp 0x473bb5
add edi, 1
movzx ecx, al
cmp edi, ecx
jae 0x47386b
cmp byte [esp + edi + 0x41], 8
jne 0x473ba7
mov ecx, dword [esp + edi*8 + 0x50]
test ecx, ecx
je 0x473ba7
mov eax, dword [ecx]
push 1
call dword [eax]
movzx eax, byte [esp + 0x40]
jmp 0x473ba7
or ecx, 1
mov dword [0x8fd558], ecx
xorps xmm0, xmm0
movups xmmword [0x8fd548], xmm0
xor ecx, ecx
jmp 0x4739b9
or ecx, 1
mov dword [0x8fd558], ecx
xorps xmm0, xmm0
movups xmmword [0x8fd548], xmm0
int3
int3