Function at 0x10055770
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
mov edi, dword [ecx + 4]
xor esi, esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], edi
call fcn.100555d0
mov edx, eax
mov eax, dword [ebx + 8]
mov dword [eax], esi
test edx, edx
js 0x10056096
movzx ecx, byte [edx + edi]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + edi + 1]
add cx, ax
movzx eax, cx
test ax, ax
jle 0x10055bf6
cwde
add edi, 0xa
mov dword [ebp - 0xc], esi
add edi, edx
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0x48]
lea ecx, [edx + eax*2]
mov dword [ebp - 0x38], edi
add eax, eax
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], eax
movzx eax, byte [ecx + esi + 0xa]
movzx ecx, byte [ecx + esi + 0xb]
shl eax, 8
add ecx, 0xc
add esi, eax
mov eax, dword [ebp - 0x14]
add esi, ecx
add esi, eax
add esi, edx
movzx ecx, byte [eax + edi - 1]
movzx eax, byte [eax + edi - 2]
inc ecx
mov edi, dword [ebp - 0x14]
shl eax, 8
add eax, ecx
mov dword [ebp - 0x2c], eax
lea ecx, [edi + eax]
mov eax, dword [0x1017bfd8]
test eax, eax
je 0x1005582f
inc dword [eax + 0x36c]
lea eax, [ecx*8]
sub eax, ecx
add eax, eax
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, eax
add esp, 4
mov dword [ebp - 8], edx
test edx, edx
je 0x10056096
lea eax, [edi*8]
mov dword [ebp - 0x40], 0
sub eax, edi
xor cl, cl
add eax, eax
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x48], eax
jbe 0x10055bb1
lea edi, [eax + 0xc]
mov eax, dword [ebp - 0x2c]
add edi, edx
mov dword [ebp - 0x34], eax
mov dl, byte [ebp - 1]
test cl, cl
jne 0x1005589f
mov dl, byte [esi]
mov ch, dl
and ch, 8
je 0x10055890
mov cl, byte [esi + 1]
xor eax, eax
test ch, ch
setne al
inc eax
add esi, eax
mov eax, dword [ebp - 0x34]
jmp 0x100558a1
dec cl
mov byte [edi], dl
add edi, 0xe
sub eax, 1
mov dword [ebp - 0x34], eax
jne 0x10055880
mov eax, dword [ebp - 0x48]
xor edi, edi
add eax, dword [ebp - 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
mov cl, byte [edx + 0xc]
and cl, 0x10
test byte [edx + 0xc], 2
mov byte [ebp - 1], cl
je 0x100558e6
mov al, byte [esi]
inc esi
movzx ecx, al
mov eax, ecx
neg eax
cmp byte [ebp - 1], 0
cmove ecx, eax
add edi, ecx
jmp 0x10055908
test cl, cl
jne 0x10055908
movzx ecx, byte [esi]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + 1]
add cx, ax
movsx eax, cx
add edi, eax
add esi, 2
mov word [edx], di
add edx, 0xe
sub dword [ebp - 0x34], 1
jne 0x100558c2
mov ecx, dword [ebp - 0x14]
xor edi, edi
mov edx, dword [ebp - 8]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x2c]
add edx, 2
mov dword [ebp - 0x30], ecx
lea eax, [edx + eax*2]
mov dword [ebp - 0x34], eax
mov dl, byte [eax + 0xa]
and dl, 0x20
test byte [eax + 0xa], 4
je 0x10055953
mov al, byte [esi]
inc esi
movzx ecx, al
mov eax, ecx
neg eax
test dl, dl
cmove ecx, eax
add edi, ecx
jmp 0x10055975
test dl, dl
jne 0x10055975
movzx ecx, byte [esi]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + 1]
add cx, ax
movsx eax, cx
add edi, eax
add esi, 2
mov eax, dword [ebp - 0x34]
mov word [eax], di
add eax, 0xe
sub dword [ebp - 0x30], 1
mov dword [ebp - 0x34], eax
jne 0x10055934
mov esi, dword [ebp - 0x14]
xor eax, eax
xor edx, edx
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
lea eax, [esi*8]
mov dword [ebp - 0x20], edx
sub eax, esi
mov dword [ebp - 0x24], edx
mov esi, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], ecx
lea edi, [esi + eax*2]
mov al, byte [edi + 0xc]
mov byte [ebp - 1], al
movzx eax, word [edi]
mov dword [ebp - 0x14], eax
movzx eax, word [edi + 2]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x40], eax
jne 0x10055aa8
test eax, eax
je 0x100559f9
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push ecx
push dword [ebp - 0x28]
mov ecx, esi
push dword [ebp - 0x3c]
push dword [ebp - 0xc]
call fcn.100556a0
add esp, 0x20
mov edx, eax
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp - 0x14]
not eax
and eax, 1
mov dword [ebp - 0x3c], eax
movsx eax, cx
je 0x10055a59
test byte [edi + 0x1a], 1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
movsx ecx, ax
lea eax, [edi + 0xe]
mov dword [ebp - 0x30], ecx
movsx ecx, word [edi + 0x10]
mov dword [ebp - 0x48], eax
movsx eax, word [eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], ecx
jne 0x10055a51
mov ecx, dword [ebp - 0x14]
movsx esi, cx
mov ecx, dword [ebp - 0x1c]
add eax, esi
mov esi, dword [ebp - 0x10]
sar eax, 1
mov dword [ebp - 0x28], eax
movsx eax, si
mov esi, dword [ebp - 8]
add ecx, eax
sar ecx, 1
jmp 0x10055a62
inc dword [ebp - 0x18]
mov edi, dword [ebp - 0x48]
jmp 0x10055a65
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
movsx ecx, cx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x28]
lea eax, [edx*8]
sub eax, edx
inc edx
mov word [esi + eax*2], cx
mov ecx, dword [ebp - 0x1c]
mov word [esi + eax*2 + 2], cx
xor ecx, ecx
mov dword [esi + eax*2 + 4], ecx
mov byte [esi + eax*2 + 0xc], 1
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], ecx
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
shl ecx, 8
inc eax
add eax, ecx
add dword [ebp - 0x38], 2
mov dword [ebp - 0x40], eax
jmp 0x10055b94
test byte [ebp - 1], 1
jne 0x10055b19
cmp dword [ebp - 0xc], 0
je 0x10055afe
lea ecx, [edx*8]
sub ecx, edx
inc edx
mov dword [ebp - 0xc], ecx
mov byte [esi + ecx*2 + 0xc], 3
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
movsx eax, cx
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
sar eax, 1
mov word [esi + ecx*2], ax
mov ecx, dword [ebp - 0x10]
movsx eax, cx
mov ecx, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
sar eax, 1
mov word [esi + ecx*2 + 2], ax
mov eax, dword [ebp - 0x24]
mov word [esi + ecx*2 + 4], ax
mov eax, dword [ebp - 0x20]
mov word [esi + ecx*2 + 6], ax
mov eax, dword [ebp - 0x14]
movsx ecx, ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
movsx ecx, ax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], 1
jmp 0x10055b94
lea ecx, [edx*8]
sub ecx, edx
cmp dword [ebp - 0xc], 0
je 0x10055b3c
mov eax, dword [ebp - 0x20]
movzx eax, ax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x24]
movzx eax, ax
mov dword [ebp - 0x44], eax
jmp 0x10055b4a
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x10]
movzx esi, ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
movzx esi, ax
mov eax, dword [ebp - 0xc]
test eax, eax
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 8]
setne al
add al, 2
mov dword [ebp - 0xc], 0
inc edx
mov byte [esi + ecx*2 + 0xc], al
mov eax, dword [ebp - 0x14]
mov word [esi + ecx*2], ax
mov eax, dword [ebp - 0x10]
mov word [esi + ecx*2 + 2], ax
mov eax, dword [ebp - 0x44]
mov word [esi + ecx*2 + 4], ax
mov eax, dword [ebp - 0x48]
mov word [esi + ecx*2 + 6], ax
mov eax, dword [ebp - 0x18]
add edi, 0xe
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x2c]
jl 0x100559b4
mov eax, ecx
mov ecx, dword [ebp - 0x28]
jmp 0x10055bc6
mov esi, dword [ebp - 8]
xor edx, edx
xor eax, eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
xor ecx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push eax
push ecx
push dword [ebp - 0x3c]
mov ecx, esi
push dword [ebp - 0xc]
call fcn.100556a0
mov ecx, eax
add esp, 0x20
mov eax, dword [ebx + 8]
mov dword [eax], esi
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp ax, 0xffff
jne 0x100560a1
add edi, 0xa
mov dword [ebp - 0x28], esi
add edi, edx
xor esi, esi
mov dword [ebp - 8], esi
mov al, byte [edi + 2]
movups xmm0, xmmword [0x101455a0]
movzx edx, byte [edi + 1]
movss xmm6, dword [0x10144ed4]
mov byte [ebp - 1], al
mov al, byte [edi + 3]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x40], edx
mov byte [ebp - 2], al
movups xmmword [ebp - 0x60], xmm0
test dl, 2
je 0x100560a6
mov al, byte [edi + 4]
lea ecx, [edi + 5]
mov dword [ebp - 0x48], ecx
test dl, 1
je 0x10055c9b
mov dl, byte [edi + 6]
lea esi, [edi + 7]
movzx ecx, al
add edi, 8
movsx ecx, cx
mov eax, 0x100
cwde
imul ecx, eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
add cx, ax
movsx eax, cx
mov dword [ebp - 0x48], eax
mov eax, 0x100
movzx ecx, dl
mov edx, dword [ebp - 0x40]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi]
mov esi, dword [ebp - 8]
add cx, ax
mov eax, dword [ebp - 0x48]
movsx ecx, cx
jmp 0x10055ca6
mov edi, ecx
movsx eax, al
mov cl, byte [edi]
inc edi
movsx ecx, cl
movd xmm5, ecx
movd xmm0, eax
cvtdq2ps xmm5, xmm5
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x24], xmm5
movss dword [ebp - 0x2c], xmm0
test dl, 8
je 0x10055d02
movzx ecx, byte [edi]
mov eax, 0x100
cwde
xorps xmm4, xmm4
movsx ecx, cx
xorps xmm1, xmm1
imul ecx, eax
movzx eax, byte [edi + 1]
movss dword [ebp - 0x2c], xmm0
movss dword [ebp - 0x24], xmm5
add cx, ax
add edi, 2
movsx eax, cx
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mulss xmm2, xmm6
movaps xmm3, xmm2
jmp 0x10055e23
test dl, 0x40
je 0x10055d67
movzx ecx, byte [edi]
mov edx, 0x100
movsx ecx, cx
xorps xmm4, xmm4
movsx eax, dx
xorps xmm1, xmm1
imul ecx, eax
movzx eax, byte [edi + 1]
movss dword [ebp - 0x2c], xmm0
movss dword [ebp - 0x24], xmm5
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 2]
movsx ecx, cx
movd xmm3, eax
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 3]
cvtdq2ps xmm3, xmm3
add cx, ax
add edi, 4
movsx eax, cx
mulss xmm3, xmm6
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mulss xmm2, xmm6
jmp 0x10055e23
test dl, dl
jns 0x10055e0f
movzx ecx, byte [edi]
mov edx, 0x100
movsx ecx, cx
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 1]
movss dword [ebp - 0x2c], xmm0
movss dword [ebp - 0x24], xmm5
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 2]
movsx ecx, cx
movd xmm3, eax
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 3]
cvtdq2ps xmm3, xmm3
add cx, ax
movsx eax, cx
movzx ecx, byte [edi + 4]
movsx ecx, cx
mulss xmm3, xmm6
movd xmm1, eax
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 5]
cvtdq2ps xmm1, xmm1
add cx, ax
movsx eax, cx
movss dword [ebp - 0x30], xmm3
movzx ecx, byte [edi + 6]
movsx ecx, cx
movd xmm4, eax
movsx eax, dx
imul ecx, eax
movzx eax, byte [edi + 7]
cvtdq2ps xmm4, xmm4
add cx, ax
add edi, 8
movsx eax, cx
mulss xmm1, xmm6
mulss xmm4, xmm6
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mulss xmm2, xmm6
jmp 0x10055e28
movss xmm2, dword [ebp - 0x54]
movss xmm4, dword [ebp - 0x58]
movss xmm1, dword [ebp - 0x5c]
movss xmm3, dword [ebp - 0x60]
movss dword [ebp - 0x30], xmm3
movaps xmm0, xmm1
movss dword [ebp - 0x18], xmm1
mulss xmm0, xmm1
movaps xmm1, xmm3
mulss xmm1, xmm3
movss dword [ebp - 0x1c], xmm4
movss dword [ebp - 0x34], xmm2
addss xmm0, xmm1
call fcn.10003c80
movss dword [ebp - 0x48], xmm0
movaps xmm1, xmm4
movaps xmm0, xmm2
mulss xmm1, xmm4
mulss xmm0, xmm2
addss xmm0, xmm1
call fcn.10003c80
movzx edx, byte [ebp - 1]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
push eax
movzx eax, byte [ebp - 2]
shl edx, 8
add edx, eax
movss dword [ebp - 0x44], xmm0
call fcn.100579a0
add esp, 4
mov dword [ebp - 0x3c], eax
test eax, eax
jle 0x10056045
movss xmm4, dword [ebp - 0x34]
xor edx, edx
movss xmm5, dword [ebp - 0x30]
mov esi, eax
movss xmm6, dword [ebp - 0x1c]
movss xmm7, dword [ebp - 0x18]
nop
mov ecx, dword [ebp - 0x20]
xorps xmm3, xmm3
xorps xmm2, xmm2
movsx eax, word [edx + ecx + 2]
cvtsi2ss xmm3, eax
movsx eax, word [edx + ecx]
cvtsi2ss xmm2, eax
movaps xmm0, xmm3
mulss xmm3, xmm4
movaps xmm1, xmm2
mulss xmm0, xmm6
mulss xmm1, xmm5
mulss xmm2, xmm7
addss xmm1, xmm0
addss xmm2, xmm3
xorps xmm3, xmm3
addss xmm1, dword [ebp - 0x2c]
addss xmm2, dword [ebp - 0x24]
mulss xmm1, dword [ebp - 0x48]
mulss xmm2, dword [ebp - 0x44]
cvttss2si eax, xmm1
mov word [edx + ecx], ax
cvttss2si eax, xmm2
xorps xmm2, xmm2
mov word [edx + ecx + 2], ax
movsx eax, word [edx + ecx + 6]
cvtsi2ss xmm3, eax
movsx eax, word [edx + ecx + 4]
cvtsi2ss xmm2, eax
movaps xmm0, xmm3
mulss xmm3, xmm4
movaps xmm1, xmm2
mulss xmm0, xmm6
mulss xmm1, xmm5
mulss xmm2, xmm7
addss xmm1, xmm0
addss xmm2, xmm3
addss xmm1, dword [ebp - 0x2c]
addss xmm2, dword [ebp - 0x24]
mulss xmm1, dword [ebp - 0x48]
mulss xmm2, dword [ebp - 0x44]
cvttss2si eax, xmm1
mov word [edx + ecx + 4], ax
cvttss2si eax, xmm2
mov word [edx + ecx + 6], ax
add edx, 0xe
sub esi, 1
jne 0x10055eb0
mov eax, dword [0x1017bfd8]
mov esi, dword [ebp - 8]
test eax, eax
je 0x10055f87
inc dword [eax + 0x36c]
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x3c]
lea ecx, [eax*8]
sub ecx, eax
add ecx, ecx
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
je 0x10056053
mov edx, dword [ebp - 0x28]
test edx, edx
jle 0x10055fcd
lea ecx, [edx*8]
sub ecx, edx
add ecx, ecx
push ecx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x28]
add esp, 0xc
mov ecx, dword [ebp - 0x3c]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x48]
add eax, eax
push eax
push dword [ebp - 0x20]
lea eax, [edx*8]
sub eax, edx
lea eax, [ecx + eax*2]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test esi, esi
je 0x10056014
mov eax, dword [0x1017bfd8]
test eax, eax
je 0x1005600a
dec dword [eax + 0x36c]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 8], esi
test ecx, ecx
je 0x10056030
mov eax, dword [0x1017bfd8]
test eax, eax
je 0x10056030
dec dword [eax + 0x36c]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 0x28]
add esp, 4
add ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], ecx
jmp 0x10056048
mov ecx, dword [ebp - 0x28]
test byte [ebp - 0x40], 0x20
je 0x100560b0
jmp 0x10055c0d
test esi, esi
je 0x10056074
mov eax, dword [0x1017bfd8]
test eax, eax
je 0x10056066
dec dword [eax + 0x36c]
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
add esp, 4
jmp 0x1005607a
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x10056096
mov eax, dword [0x1017bfd8]
test eax, eax
je 0x10056090
dec dword [eax + 0x36c]
push ecx
call esi
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
test ax, ax
jns 0x100560ae
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
xor ecx, ecx
mov eax, dword [ebx + 8]
pop edi
mov dword [eax], esi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret