Function at 0x5817b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6c9db0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
movss dword [ebp - 0x18], xmm1
mov eax, 0x38e38e39
mov dword [ebp - 0x28], edi
xor ecx, ecx
movaps xmm2, xmm0
movss dword [ebp - 0x1c], xmm2
mov edx, dword [edi + 4]
mov esi, dword [edi]
sub edx, esi
imul edx
mov dword [ebp - 0x20], ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x581a03
xor ebx, ebx
lea ebx, [ebx]
cmp ebx, 0x168
jae 0x581a03
lea eax, [esi + 0x30]
add eax, ebx
cmp dword [eax + 0x14], 0x10
jb 0x581819
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0xfff3b656
push eax
movaps xmm0, xmm2
sub esp, 8
addss xmm0, dword [0x676b38]
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
push dword [0x775b94]
call fcn.00593460
mov edi, dword [edi]
add esp, 0x14
add edi, ebx
cmp dword [edi + 0x14], 0x10
jb 0x581858
mov edi, dword [edi]
movdqa xmm0, xmmword [0x676b60]
mov esi, edi
mov ecx, dword [0x775b94]
mov dword [ebp - 0x30], ecx
movdqu xmmword [ebp - 0x14], xmm0
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x581873
sub esi, edx
cmp dword [ecx + 0x668], 0
jne 0x58189e
push 0
push 0x58
push str.c:warz2_srceternityincluded3dFont.h
push str.fnt_pD3DXFont
call fcn.00589fd0
mov ecx, dword [ebp - 0x30]
add esp, 0x10
mov eax, dword [ecx + 0x668]
lea edx, [ebp - 0x14]
push 0xffffffffffffffff
push 0x400
push edx
mov ecx, dword [eax]
push esi
push edi
push 0
push eax
call dword [ecx + 0x38]
movd xmm3, dword [0x775b88]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
sub eax, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x10]
movss xmm1, dword [ebp - 0x1c]
cvtdq2ps xmm3, xmm3
mov dword [ebp - 0x24], 0xffffffff
movd xmm4, eax
comiss xmm3, xmm1
movd xmm2, ecx
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm2, xmm2
jb 0x581992
movaps xmm0, xmm4
addss xmm0, xmm1
movss xmm1, dword [ebp - 0x18]
comiss xmm0, xmm3
jb 0x581997
movd xmm3, dword [0x775b84]
cvtdq2ps xmm3, xmm3
comiss xmm3, xmm1
jb 0x581997
movaps xmm0, xmm2
addss xmm0, xmm1
comiss xmm0, xmm3
jb 0x581997
movss xmm0, dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push 0
push 0
push eax
sub esp, 0x10
mov dword [ebp - 0x24], 0xffffd800
addss xmm2, xmm1
mov dword [esp + 0xc], 0x3f800000
movss dword [esp + 8], xmm4
movss dword [esp + 4], xmm2
movss dword [esp], xmm0
call fcn.00597940
add esp, 0x1c
cmp dword [0x775b80], 0
je 0x581992
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
add eax, 0x18
add eax, ebx
cmp dword [eax + 0x14], 0x10
jb 0x58197b
mov eax, dword [eax]
push 5
push 0
push 0x674e14
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
movss xmm1, dword [ebp - 0x18]
movss xmm0, dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push edi
push 0x67498c
push eax
sub esp, 8
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
push dword [0x775b94]
call fcn.00593460
mov edi, dword [ebp - 0x28]
mov eax, 0x38e38e39
movss xmm1, dword [ebp - 0x18]
add esp, 0x18
addss xmm1, dword [0x676b04]
inc dword [ebp - 0x20]
add ebx, 0x48
mov ecx, dword [edi + 4]
mov esi, dword [edi]
sub ecx, esi
movss xmm2, dword [ebp - 0x1c]
imul ecx
movss dword [ebp - 0x18], xmm1
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x20], eax
jb 0x581800
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005aede3
mov esp, ebp
pop ebp
ret