Function at 0x581890
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6b9da0]
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 0x581ae3
xor ebx, ebx
lea ebx, [ebx]
cmp ebx, 0x168
jae 0x581ae3
lea eax, [esi + 0x30]
add eax, ebx
cmp dword [eax + 0x14], 0x10
jb 0x5818f9
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 [0x68d5a4]
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
push dword [0x827b74]
call fcn.00593310
mov edi, dword [edi]
add esp, 0x14
add edi, ebx
cmp dword [edi + 0x14], 0x10
jb 0x581938
mov edi, dword [edi]
movdqa xmm0, xmmword [0x68d5c0]
mov esi, edi
mov ecx, dword [0x827b74]
mov dword [ebp - 0x30], ecx
movdqu xmmword [ebp - 0x14], xmm0
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x581953
sub esi, edx
cmp dword [ecx + 0x668], 0
jne 0x58197e
push 0
push 0x58
push str.c:warz2_srceternityincluded3dFont.h
push str.fnt_pD3DXFont
call fcn.00589f70
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 [0x827b68]
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 0x581a72
movaps xmm0, xmm4
addss xmm0, xmm1
movss xmm1, dword [ebp - 0x18]
comiss xmm0, xmm3
jb 0x581a77
movd xmm3, dword [0x827b64]
cvtdq2ps xmm3, xmm3
comiss xmm3, xmm1
jb 0x581a77
movaps xmm0, xmm2
addss xmm0, xmm1
comiss xmm0, xmm3
jb 0x581a77
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.00597750
add esp, 0x1c
cmp dword [0x827b60], 0
je 0x581a72
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
add eax, 0x18
add eax, ebx
cmp dword [eax + 0x14], 0x10
jb 0x581a5b
mov eax, dword [eax]
push 5
push 0
push 0x68b994
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 0x68b504
push eax
sub esp, 8
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
push dword [0x827b74]
call fcn.00593310
mov edi, dword [ebp - 0x28]
mov eax, 0x38e38e39
movss xmm1, dword [ebp - 0x18]
add esp, 0x18
addss xmm1, dword [0x68d570]
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 0x5818e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005aec30
mov esp, ebp
pop ebp
ret