Function at 0x10138060
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
push edi
mov edi, dword [0x101e6b78]
mov esi, ecx
movss dword [ebp - 0x14], xmm3
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], esi
mov eax, dword [edi + 0x19e4]
mov byte [eax + 0x7c], 1
mov ecx, dword [edi + 0x19e4]
mov dword [ebp - 0xc], ecx
cmp byte [ecx + 0x7f], 0
jne 0x10138706
movss xmm0, dword [ebp + 0x18]
ucomiss xmm0, dword [0x1017f0d8]
lahf
test ah, 0x44
jnp 0x101380c2
cmp dword [ebp + 0xc], 0
je case.default.0x101383b9
cmp dword [ebp + 0x10], 0
je case.default.0x101383b9
push ecx
push esi
call fcn.1011d2f0
mov ecx, dword [0x101e6b78]
xorps xmm7, xmm7
mov ebx, eax
mov ecx, dword [ecx + 0x19e4]
movss xmm1, dword [ecx + 0x16c]
comiss xmm7, xmm1
movss dword [ebp - 0x28], xmm1
jbe 0x1013810c
lea ecx, [ebp - 0x44]
call fcn.10111440
movss xmm0, dword [ebp - 0x28]
xorps xmm7, xmm7
movss xmm1, dword [0x1017f0d8]
addss xmm0, dword [eax]
maxss xmm1, xmm0
mov edx, dword [ebp - 0x24]
mov ecx, edx
cvttss2si esi, xmm1
cmp edx, 0xffffffff
jae 0x10138139
nop word [eax + eax]
mov dl, byte [ecx]
test dl, dl
je 0x10138136
cmp dl, 0x23
jne 0x10138130
cmp byte [ecx + 1], dl
je 0x10138136
inc ecx
cmp ecx, 0xffffffff
jb 0x10138120
mov edx, dword [ebp - 0x24]
mov eax, dword [0x101e6b78]
movss xmm0, dword [eax + 0x1900]
cmp edx, ecx
jne 0x1013814f
movaps xmm6, xmm7
jmp 0x10138194
movss xmm3, dword [0x1017f334]
movaps xmm2, xmm0
push ecx
push ecx
push edx
push ecx
lea ecx, [ebp - 0x20]
mov dword [esp], 0xbf800000
push ecx
mov ecx, dword [eax + 0x18fc]
call fcn.10129fa0
movss xmm0, dword [ebp - 0x20]
xorps xmm7, xmm7
addss xmm0, dword [0x1017f0d0]
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x1c]
movd xmm6, eax
cvtdq2ps xmm6, xmm6
comiss xmm6, xmm7
mov eax, dword [ebp - 0xc]
movss xmm3, dword [eax + 0xc8]
movss xmm5, dword [edi + 0x153c]
movaps xmm2, xmm3
movd xmm1, esi
mov esi, eax
cvtdq2ps xmm1, xmm1
movss xmm4, dword [esi + 0xcc]
addss xmm2, xmm1
movss dword [ebp - 0x28], xmm6
movaps xmm1, xmm5
movss dword [ebp - 0x3c], xmm3
addss xmm1, xmm5
movss dword [ebp - 0x38], xmm4
movss dword [ebp - 0x34], xmm2
addss xmm1, xmm0
addss xmm1, xmm4
movss dword [ebp - 0x30], xmm1
jbe 0x101381f9
movaps xmm0, xmm6
addss xmm0, dword [edi + 0x1550]
jmp 0x101381fc
movaps xmm0, xmm7
addss xmm1, xmm7
movss dword [ebp - 0x4c], xmm3
addss xmm2, xmm0
movss dword [ebp - 0x48], xmm4
lea ecx, [ebp - 0x20]
movss dword [ebp - 0x40], xmm1
subss xmm1, xmm4
movss dword [ebp - 0x44], xmm2
subss xmm2, xmm3
movss dword [ebp - 0x1c], xmm1
movaps xmm1, xmm5
movss dword [ebp - 0x20], xmm2
call fcn.101198e0
lea eax, [ebp - 0x3c]
mov edx, ebx
push eax
lea ecx, [ebp - 0x4c]
call fcn.1011cfb0
add esp, 4
test al, al
je 0x10138706
mov edx, ebx
lea ecx, [ebp - 0x3c]
call fcn.10119700
mov byte [ebp - 5], al
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x10138271
mov eax, dword [ebp - 0x18]
lea ecx, [eax + eax*2]
mov eax, dword [ecx*4 + 0x10178f8c]
jmp 0x101382b1
cmp dword [ebp - 0x18], 0
jne 0x101382b4
mov ecx, 0x10172898
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x101382a0
test dl, dl
je 0x1013829c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x101382a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10138280
xor eax, eax
jmp 0x101382a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x101382b4
mov ecx, dword [ebp + 0x14]
call fcn.10136f50
mov dword [ebp + 0x14], eax
push 1
mov edx, ebx
mov ecx, esi
call fcn.101195c0
add esp, 4
mov byte [ebp - 0xd], al
test al, al
jne 0x101382f6
cmp byte [ebp - 5], al
je 0x101382de
cmp byte [edi + 0x3d0], al
jne 0x101382f6
cmp byte [edi + 0x3d5], al
jne 0x101382f6
cmp dword [edi + 0x1b00], ebx
je 0x101382f6
cmp dword [edi + 0x1b0c], ebx
jne 0x10138345
cmp dword [edi + 0x2c44], ebx
je 0x10138345
mov edx, esi
mov ecx, ebx
call fcn.10119c40
call fcn.10119b70
mov ecx, esi
call fcn.10111f60
cmp byte [ebp - 0xd], 0
mov dword [edi + 0x1a1c], 0xc
jne 0x101386b5
cmp byte [edi + 0xf8], 0
jne 0x101386b5
cmp byte [edi + 0x3d5], 0
jne 0x101386b5
cmp dword [edi + 0x1b0c], ebx
je 0x101386b5
cmp dword [edi + 0x1a04], ebx
jne 0x10138359
cmp dword [edi + 0x2c44], ebx
je 0x101386bf
mov esi, dword [0x101e6b78]
cmp dword [esi + 0x1a04], ebx
jne 0x1013839e
mov eax, dword [esi + 0x1a34]
cmp eax, 1
jne 0x1013837d
cmp byte [esi + 0xe8], 0
je 0x10138393
jmp 0x10138398
cmp eax, 2
jne 0x10138398
cmp dword [esi + 0x1b08], ebx
jne 0x10138398
cmp byte [esi + 0x1a14], 0
jne 0x10138398
call fcn.10119b10
cmp dword [esi + 0x1a04], ebx
mov edx, dword [ebp + 8]
je 0x101383ad
xor al, al
mov byte [ebp - 5], al
jmp 0x101385b6
mov ecx, dword [ebp - 0x18]
cmp ecx, 5
ja case.default.0x101383b9
jmp dword [ecx*4 + 0x10138710]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x101383cb
mov esi, dword [eax]
jmp 0x101383d0
mov esi, bind
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101383db
mov eax, dword [eax]
jmp 0x101383e0
mov eax, bind
movss xmm0, dword [ebp + 0x18]
sub esp, 8
movss xmm2, dword [ebp - 0x14]
movss dword [esp], xmm0
push dword [ebp + 0x14]
push esi
push eax
call fcn.1003d3c0
add esp, 0x14
jmp 0x101385a8
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1013840f
mov esi, dword [eax]
jmp 0x10138412
or esi, 0xffffffff
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1013841d
mov eax, dword [eax]
jmp 0x1013841f
xor eax, eax
movss xmm0, dword [ebp + 0x18]
sub esp, 8
movss xmm2, dword [ebp - 0x14]
movss dword [esp], xmm0
push dword [ebp + 0x14]
push esi
push eax
call fcn.1003d900
add esp, 0x14
jmp 0x101385a8
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10138457
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov esi, dword [eax + 4]
mov dword [ebp - 0xc], esi
jmp 0x10138465
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0xc], bind
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10138473
mov esi, dword [eax]
mov eax, dword [eax + 4]
jmp 0x1013847a
xor esi, esi
mov eax, bind
movss xmm0, dword [ebp + 0x18]
sub esp, 8
movss xmm2, dword [ebp - 0x14]
movss dword [esp], xmm0
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push eax
push esi
call fcn.1003deb0
jmp 0x101385a5
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x101384b5
mov esi, dword [eax]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], esi
jmp 0x101384c3
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101384d1
mov esi, dword [eax]
mov eax, dword [eax + 4]
jmp 0x101384df
xorps xmm0, xmm0
movlpd qword [ebp - 0x44], xmm0
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
movss xmm0, dword [ebp + 0x18]
sub esp, 8
movss xmm2, dword [ebp - 0x14]
movss dword [esp], xmm0
push dword [ebp + 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push eax
push esi
call fcn.1003e540
jmp 0x101385a5
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10138513
movss xmm0, dword [eax]
jmp 0x1013851b
movss xmm0, dword [0x1017f334]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10138528
movss xmm3, dword [eax]
jmp 0x10138530
movss xmm3, dword [0x1017f3b0]
movss xmm1, dword [ebp + 0x18]
sub esp, 8
movss xmm2, dword [ebp - 0x14]
movss dword [esp], xmm1
push dword [ebp + 0x14]
push ecx
movss dword [esp], xmm0
call fcn.1003ebd0
add esp, 0x10
jmp 0x101385a8
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10138562
movsd xmm1, qword [eax]
jmp 0x1013856a
movsd xmm1, qword [0x1017f340]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10138577
movsd xmm0, qword [eax]
jmp 0x1013857f
movsd xmm0, qword [0x1017f3c0]
movss xmm2, dword [ebp - 0x14]
sub esp, 0x18
movsd qword [esp + 0x10], xmm1
movsd qword [esp + 8], xmm0
movss xmm0, dword [ebp + 0x18]
movss dword [esp], xmm0
push dword [ebp + 0x14]
call fcn.1003f140
add esp, 0x1c
mov byte [ebp - 5], al
test al, al
je 0x101385b6
mov ecx, ebx
call fcn.10119a60
cmp dword [edi + 0x1a04], ebx
jne 0x101385c5
mov ecx, 0xb
jmp 0x101385d3
xor ecx, ecx
cmp dword [edi + 0x19f0], ebx
sete cl
add ecx, 9
movss xmm1, dword [0x1017f0d8]
call fcn.1011b7d0
push 1
mov edx, ebx
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.1011a750
movss xmm2, dword [edi + 0x1540]
add esp, 4
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.1011acc0
push dword [ebp + 0x14]
mov edx, 0x40
lea ecx, [ebp - 0x8c]
push dword [ebp + 8]
push dword [ebp - 0x18]
call fcn.10136ec0
add esp, 0x1c
mov dword [ebp - 0x44], 0x3f000000
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x40], 0x3f000000
add eax, ecx
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x44]
push 0
push ecx
push 0
push eax
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1011ade0
movss xmm0, dword [ebp - 0x28]
add esp, 0x14
comiss xmm0, dword [0x1017efe0]
jbe 0x101386a3
movss xmm0, dword [ebp - 0x34]
xor edx, edx
addss xmm0, dword [edi + 0x1550]
mov ecx, dword [ebp - 0x24]
movss dword [ebp - 0x2c], xmm0
movss xmm0, dword [ebp - 0x38]
addss xmm0, dword [edi + 0x153c]
movss dword [ebp - 0x28], xmm0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 1
call fcn.1011b2d0
add esp, 0xc
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [edi + 0x2c44], 0
push dword [ebp + 0x14]
movss xmm0, dword [ebp - 0x3c]
lea ecx, [ebp - 0x3c]
push dword [ebp + 8]
dec dword [esi + 0x328]
mov edx, ebx
dec dword [esi + 0x32c]
push dword [ebp - 0x18]
movss dword [esi + 0xc8], xmm0
movss xmm0, dword [ebp - 0x38]
movss dword [esi + 0xcc], xmm0
mov esi, dword [ebp - 0x24]
push esi
call fcn.10135c50
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret