Function at 0x5818b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6a1da0]
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 0x581b03
xor ebx, ebx
lea ebx, [ebx]
cmp ebx, 0x168
jae 0x581b03
lea eax, [esi + 0x30]
add eax, ebx
cmp dword [eax + 0x14], 0x10
jb 0x581919
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 [0x676aa4]
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
push dword [0x74db64]
call fcn.00593a60
mov edi, dword [edi]
add esp, 0x14
add edi, ebx
cmp dword [edi + 0x14], 0x10
jb 0x581958
mov edi, dword [edi]
movdqa xmm0, xmmword [0x676ac0]
mov esi, edi
mov ecx, dword [0x74db64]
mov dword [ebp - 0x30], ecx
movdqu xmmword [ebp - 0x14], xmm0
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x581973
sub esi, edx
cmp dword [ecx + 0x668], 0
jne 0x58199e
push 0
push 0x58
push str.c:warz2_srceternityincluded3dFont.h
push str.fnt_pD3DXFont
call fcn.0058a690
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 [0x74db58]
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 0x581a92
movaps xmm0, xmm4
addss xmm0, xmm1
movss xmm1, dword [ebp - 0x18]
comiss xmm0, xmm3
jb 0x581a97
movd xmm3, dword [0x74db54]
cvtdq2ps xmm3, xmm3
comiss xmm3, xmm1
jb 0x581a97
movaps xmm0, xmm2
addss xmm0, xmm1
comiss xmm0, xmm3
jb 0x581a97
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.00597f30
add esp, 0x1c
cmp dword [0x74db50], 0
je 0x581a92
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
add eax, 0x18
add eax, ebx
cmp dword [eax + 0x14], 0x10
jb 0x581a7b
mov eax, dword [eax]
push 5
push 0
push 0x674e48
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 0x674940
push eax
sub esp, 8
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
push dword [0x74db64]
call fcn.00593a60
mov edi, dword [ebp - 0x28]
mov eax, 0x38e38e39
movss xmm1, dword [ebp - 0x18]
add esp, 0x18
addss xmm1, dword [0x676a70]
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 0x581900
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005af2c3
mov esp, ebp
pop ebp
ret