Function at 0x4be140
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x6019e4]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
cmp dword [edi + 0x64], 0
jle 0x4be375
xor edx, edx
mov dword [esp + 0x1c], edx
lea esi, [edx + 2]
nop word [eax + eax]
mov dword [esp + 0x20], 0
nop dword [eax + eax]
mov dword [esp + 0x18], 0
nop dword [eax + eax]
mov eax, dword [edi + 0x78]
cmp dword [eax + 0x200], 0
jne 0x4be1c3
mov ecx, dword [edi + 0x74]
test ecx, ecx
js 0x4be1cb
mov eax, dword [eax + ecx*4 + 0x170]
mov eax, dword [eax + 0x40]
cmp word [eax], 0
jne 0x4be1cb
mov dword [esp + 0x18], 1
mov ecx, dword [edi + 0x5c]
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
push 0xb
mov word [esp + 0x34], si
mov ax, word [edx + ecx + 4]
mov word [esp + 0x36], ax
mov eax, dword [edx + ecx]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x44], al
lea eax, [esp + 0x45]
push eax
call fcn.004e3140
push 0x200
call fcn.0058db11
mov esi, eax
add esp, 0xc
mov dword [esp + 0x2c], esi
test esi, esi
je 0x4be386
lea eax, [esp + 0x30]
mov edx, esi
push eax
lea eax, [esp + 0x44]
mov ecx, edi
push 0
push eax
call fcn.004bde30
add esi, eax
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov byte [esi + 0x20], 0
mov ecx, dword [edi + 0x74]
test ecx, ecx
js 0x4be29e
mov eax, dword [edi + 0x78]
mov eax, dword [eax + ecx*4 + 0x170]
mov eax, dword [eax + 0x40]
test esi, esi
je 0x4be284
test eax, eax
je 0x4be275
push 0x1c
push eax
push esi
call fcn.00586cd0
add esp, 0xc
mov dword [esp + 0x18], 1
jmp 0x4be2c6
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
call fcn.0058c5c1
mov dword [eax], 0x16
call fcn.0058c19e
mov dword [esp + 0x18], 1
jmp 0x4be2c6
mov ecx, dword [esp + 0x1c]
mov eax, 2
mov word [esi], ax
mov eax, dword [edi + 0x5c]
mov eax, dword [ecx + eax]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x5c]
mov ax, word [ecx + eax + 4]
mov word [esi + 2], ax
mov eax, dword [esp + 0x18]
mov byte [esi + 0x1c], al
mov eax, dword [edi + 0x78]
mov dword [esi + 0x1d], eax
lea eax, [esp + 0x17]
push 1
push eax
call fcn.004e3140
movsx eax, byte [esp + 0x1f]
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x34]
push fcn.004af220
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov ecx, dword [ecx + 0x20]
push 0x4bdd40
divss xmm0, dword [0x5f1fc8]
mulss xmm0, dword [0x5f1fcc]
addss xmm0, dword [0x5f1fb8]
cvttss2si eax, xmm0
push eax
call fcn.004b2bf0
add esp, 0x14
cmp dword [edi + 0x88], 0
je 0x4be341
mov eax, dword [esp + 0x18]
mov esi, 2
mov edx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 2
jl 0x4be1a0
mov eax, dword [esp + 0x20]
mov esi, 2
mov edx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x20], eax
cmp eax, 2
jl 0x4be190
mov eax, dword [esp + 0x24]
add edx, 6
inc eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
cmp eax, dword [edi + 0x64]
jl 0x4be180
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x9fa
mov edx, 0x626fe4
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0x9fa
push 0x627000
push 0x62701c
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
int3