Function at 0x509c70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x94
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x2c], esi
mov eax, dword [esi + 0x134]
mov dword [esp + 0x28], eax
cmp dword [esi + 0x24], eax
jle 0x509c9d
cmp dword [esi + 0x28], eax
jle 0x509c9d
mov al, 1
jmp 0x509c9f
xor al, al
cmp byte [esi + 0x144], 0
je 0x509cb0
test al, al
je 0x509cb0
mov cl, 1
jmp 0x509cb2
xor cl, cl
cmp byte [esi + 0x145], 0
mov byte [esp + 0x16], cl
je 0x509cc7
test al, al
je 0x509cc7
mov ch, 1
jmp 0x509cc9
xor ch, ch
mov edx, dword [esi + 0x120]
mov byte [esp + 0x17], ch
mov dword [esp + 0x3c], 2
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
test cl, cl
je 0x509d08
mov eax, dword [esi + 0x94]
cmp byte [eax + 0xf6], 0
jne 0x509d08
mov bl, 1
jmp 0x509d0a
xor bl, bl
mov byte [esp + 0x34], bl
test ch, ch
je 0x509d25
mov eax, dword [esi + 0x90]
cmp byte [eax + 0xf6], 0
jne 0x509d25
mov bh, 1
jmp 0x509d27
xor bh, bh
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x28]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edi
movaps xmm0, xmmword [esp + 0x80]
movaps xmmword [esp + 0x60], xmm0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x60]
mov byte [esp + 0x38], bh
mov dword [esp + 0x40], eax
test edx, edx
je 0x509f54
mov edx, dword [edx + 8]
test edx, edx
je 0x509f54
movups xmm0, xmmword [edx + 0x1c]
movd eax, xmm0
movaps xmmword [esp + 0x90], xmm0
mov dword [esp + 0x50], eax
test eax, eax
js 0x509dba
cmp dword [esp + 0x94], 0
jl 0x509dba
mov eax, dword [esp + 0x98]
add eax, dword [esp + 0x50]
cmp ecx, eax
jl 0x509dba
mov eax, dword [esp + 0x9c]
add eax, dword [esp + 0x94]
mov esi, dword [esp + 0x2c]
cmp edi, eax
jge 0x509f54
cmp byte [esp + 0x16], 0
je 0x509dd9
test bl, bl
jne 0x509dd5
cmp dword [edx + 0x1c], 0
jl 0x509dd5
mov eax, dword [edx + 0x24]
add eax, dword [edx + 0x1c]
cmp eax, ecx
jle 0x509dd9
mov bl, 1
jmp 0x509ddb
xor bl, bl
cmp byte [esp + 0x17], 0
mov byte [esp + 0x34], bl
je 0x509e04
test bh, bh
jne 0x509dfa
cmp dword [edx + 0x20], 0
jl 0x509dfa
mov eax, dword [edx + 0x28]
add eax, dword [edx + 0x20]
cmp eax, edi
jle 0x509e04
mov eax, dword [esp + 0x28]
mov bh, 1
sub ecx, eax
jmp 0x509e0e
mov ecx, dword [esp + 0x68]
xor bh, bh
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov byte [esp + 0x38], bh
test bl, bl
je 0x509e1e
sub edi, eax
jmp 0x509e22
mov edi, dword [esp + 0x6c]
movups xmm0, xmmword [edx + 0x1c]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x2c]
movd dword [esp + 0x50], xmm0
movaps xmmword [esp + 0x90], xmm0
cmp eax, dword [esp + 0x50]
jg 0x509e80
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x94]
mov esi, dword [esp + 0x2c]
jg 0x509e80
add ecx, eax
mov eax, dword [esp + 0x98]
add eax, dword [esp + 0x50]
cmp ecx, eax
jl 0x509e80
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x9c]
add ecx, edi
add eax, dword [esp + 0x94]
cmp ecx, eax
jge 0x509f62
cmp byte [esp + 0x16], 0
mov ecx, dword [esp + 0x18]
je 0x509e9d
test bl, bl
jne 0x509e99
mov eax, dword [edx + 0x24]
add eax, dword [edx + 0x1c]
cmp eax, ecx
jle 0x509e9d
mov bl, 1
jmp 0x509e9f
xor bl, bl
cmp byte [esp + 0x17], 0
mov byte [esp + 0x34], bl
je 0x509ecd
test bh, bh
jne 0x509eb8
mov eax, dword [edx + 0x28]
add eax, dword [edx + 0x20]
cmp eax, edi
jle 0x509ecd
mov ecx, dword [esi + 0x24]
mov bh, 1
mov eax, dword [esp + 0x28]
sub ecx, eax
mov byte [esp + 0x38], bh
mov dword [esp + 0x18], ecx
jmp 0x509ed7
xor bh, bh
mov byte [esp + 0x38], bh
mov eax, dword [esp + 0x28]
test bl, bl
je 0x509ee0
mov edi, dword [esi + 0x28]
sub edi, eax
cmp byte [esi + 0x14a], 0
mov edx, dword [esp + 0x40]
jne 0x509ef6
test bh, bh
cmovne edx, eax
mov dword [esp + 0x40], edx
cmp byte [esi + 0x14b], 0
jne 0x509f0e
mov eax, dword [esp + 0x30]
test bl, bl
cmovne eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x120]
test eax, eax
je 0x509fd3
mov eax, dword [eax + 8]
test eax, eax
je 0x509fd3
movups xmm0, xmmword [eax + 0x1c]
push edi
push ecx
push dword [esp + 0x38]
lea ecx, [esi + 0x98]
push edx
movups xmmword [esp + 0xa0], xmm0
call fcn.00500920
mov edx, dword [esi + 0x120]
test edx, edx
je 0x509f80
mov eax, dword [edx + 8]
jmp 0x509f82
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
jmp 0x509f66
mov ecx, dword [esp + 0x18]
test bh, bh
je 0x509ed3
mov ecx, dword [esi + 0x24]
mov eax, dword [esp + 0x28]
sub ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x509ed7
xor eax, eax
movups xmm0, xmmword [eax + 0x1c]
movd eax, xmm0
movaps xmmword [esp + 0x60], xmm0
cmp dword [esp + 0x90], eax
jne 0x509fbf
mov eax, dword [esp + 0x94]
cmp eax, dword [esp + 0x64]
jne 0x509fbf
mov eax, dword [esp + 0x98]
cmp eax, dword [esp + 0x68]
jne 0x509fbf
mov eax, dword [esp + 0x9c]
cmp eax, dword [esp + 0x6c]
je 0x509feb
sub dword [esp + 0x3c], 1
js 0x509feb
mov cl, byte [esp + 0x16]
mov ch, byte [esp + 0x17]
jmp 0x509cf1
push edi
push ecx
push dword [esp + 0x38]
lea ecx, [esi + 0x98]
push edx
call fcn.00500920
mov edx, dword [esi + 0x120]
xorps xmm0, xmm0
movaps xmmword [esp + 0x60], xmm0
test edx, edx
je 0x50a05d
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x50a05d
mov eax, dword [ecx + 0x24]
sub esp, 0x10
mov dword [esp + 0xa8], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0xac], eax
mov eax, esp
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
movups xmm0, xmmword [esp + 0xa0]
push ecx
movups xmmword [eax], xmm0
lea eax, [esi + 0x98]
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.004a5b40
movaps xmm0, xmmword [esp + 0xac]
add esp, 0x1c
movaps xmmword [esp + 0x60], xmm0
mov eax, dword [esp + 0x60]
push dword [esp + 0x28]
mov ecx, dword [esi + 0x94]
neg eax
push dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x6c]
neg eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x90]
mov dword [esp + 0x2c], eax
xor eax, eax
cmp byte [esi + 0x14b], al
cmovne eax, edi
push eax
mov eax, dword [esp + 0x4c]
push eax
call fcn.00500920
movd xmm2, dword [esp + 0x68]
xorps xmm1, xmm1
cvtdq2pd xmm2, xmm2
comisd xmm2, xmm1
ja 0x50a0b9
xorps xmm2, xmm2
mov edx, dword [esp + 0x2c]
movsd xmm0, qword [edx + 0xa0]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x50a0e5
movsd xmm0, qword [edx + 0xa8]
ucomisd xmm0, xmm2
lahf
test ah, 0x44
jnp 0x50a1c4
movsd xmm5, qword [edx + 0xb8]
movaps xmm0, xmm2
movsd xmm3, qword [edx + 0xb0]
subsd xmm0, xmm1
movaps xmm4, xmm5
movsd qword [edx + 0xa0], xmm1
subsd xmm4, xmm3
movsd qword [edx + 0xa8], xmm2
comisd xmm4, xmm0
jb 0x50a12a
movups xmm0, xmmword [edx + 0xa0]
movups xmmword [esp + 0x90], xmm0
jmp 0x50a16b
comisd xmm1, xmm3
jbe 0x50a135
xorps xmm2, xmm2
jmp 0x50a13d
subsd xmm2, xmm4
minsd xmm2, xmm3
movaps xmm0, xmm2
movsd qword [esp + 0x90], xmm2
subsd xmm0, xmm3
addsd xmm0, xmm5
comisd xmm0, xmm2
jbe 0x50a162
movsd qword [esp + 0x98], xmm0
jmp 0x50a16b
movsd qword [esp + 0x98], xmm2
lea eax, [esp + 0x90]
movsd xmm1, qword [eax]
movsd xmm0, qword [eax + 8]
ucomisd xmm3, xmm1
lahf
test ah, 0x44
jp 0x50a18f
ucomisd xmm5, xmm0
lahf
test ah, 0x44
jnp 0x50a1b9
mov ecx, edx
movsd qword [edx + 0xb0], xmm1
movsd qword [edx + 0xb8], xmm0
call fcn.005094d0
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx + 0x88]
call fcn.0042fdb0
mov edx, dword [esp + 0x2c]
mov ecx, edx
call fcn.005094d0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
movd xmm2, dword [esp + 0x3c]
cvtdq2pd xmm2, xmm2
movd xmm3, ecx
cvtdq2pd xmm3, xmm3
addsd xmm3, xmm2
comisd xmm3, xmm2
ja 0x50a1e7
movaps xmm3, xmm2
movsd xmm5, qword [edx + 0xa8]
movaps xmm4, xmm3
movsd xmm1, qword [edx + 0xa0]
subsd xmm4, xmm2
movaps xmm0, xmm5
subsd xmm0, xmm1
comisd xmm4, xmm0
jb 0x50a21c
movups xmm0, xmmword [edx + 0xa0]
movups xmmword [esp + 0x90], xmm0
jmp 0x50a25b
comisd xmm1, xmm2
ja 0x50a22d
movaps xmm1, xmm5
subsd xmm1, xmm4
minsd xmm1, xmm2
movaps xmm0, xmm1
movsd qword [esp + 0x90], xmm1
subsd xmm0, xmm2
addsd xmm0, xmm3
comisd xmm0, xmm1
jbe 0x50a252
movsd qword [esp + 0x98], xmm0
jmp 0x50a25b
movsd qword [esp + 0x98], xmm1
movsd xmm0, qword [edx + 0xb0]
lea eax, [esp + 0x90]
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
ucomisd xmm0, xmm2
lahf
test ah, 0x44
jp 0x50a28f
movsd xmm0, qword [edx + 0xb8]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x50a2bd
mov ecx, edx
movsd qword [edx + 0xb0], xmm2
movsd qword [edx + 0xb8], xmm1
call fcn.005094d0
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx + 0x88]
call fcn.0042fdb0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
cmp byte [esp + 0x16], 0
movd xmm0, dword [esi + 0x138]
cvtdq2pd xmm0, xmm0
movsd qword [edx + 0xc0], xmm0
je 0x50a2e7
mov eax, dword [esp + 0x3c]
xor edx, edx
test bl, bl
cmove eax, edx
mov dword [esp + 0x3c], eax
push edi
push dword [esp + 0x2c]
xor eax, eax
cmp byte [esi + 0x14a], al
push dword [esp + 0x38]
cmovne eax, ecx
mov ecx, dword [esp + 0x30]
push eax
call fcn.00500920
movd xmm2, dword [esp + 0x6c]
xorps xmm1, xmm1
cvtdq2pd xmm2, xmm2
comisd xmm2, xmm1
ja 0x50a31b
xorps xmm2, xmm2
mov ecx, dword [esp + 0x24]
movsd xmm0, qword [ecx + 0xa0]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x50a347
movsd xmm0, qword [ecx + 0xa8]
ucomisd xmm0, xmm2
lahf
test ah, 0x44
jnp 0x50a428
movsd xmm4, qword [ecx + 0xb8]
movsd qword [ecx + 0xa8], xmm2
movaps xmm3, xmm4
movsd xmm2, qword [ecx + 0xb0]
movsd qword [ecx + 0xa0], xmm1
subsd xmm3, xmm2
movsd xmm5, qword [ecx + 0xa8]
movaps xmm0, xmm5
subsd xmm0, xmm1
comisd xmm3, xmm0
jb 0x50a394
movups xmm0, xmmword [ecx + 0xa0]
movups xmmword [esp + 0x90], xmm0
jmp 0x50a3d3
comisd xmm1, xmm2
ja 0x50a3a5
movaps xmm1, xmm5
subsd xmm1, xmm3
minsd xmm1, xmm2
movaps xmm0, xmm1
movsd qword [esp + 0x90], xmm1
subsd xmm0, xmm2
addsd xmm0, xmm4
comisd xmm0, xmm1
jbe 0x50a3ca
movsd qword [esp + 0x98], xmm0
jmp 0x50a3d3
movsd qword [esp + 0x98], xmm1
lea eax, [esp + 0x90]
movsd xmm1, qword [eax]
movsd xmm0, qword [eax + 8]
ucomisd xmm2, xmm1
lahf
test ah, 0x44
jp 0x50a3f7
ucomisd xmm4, xmm0
lahf
test ah, 0x44
jnp 0x50a41f
movsd qword [ecx + 0xb0], xmm1
movsd qword [ecx + 0xb8], xmm0
call fcn.005094d0
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + 0x88]
call fcn.0042fdb0
mov ecx, dword [esp + 0x24]
call fcn.005094d0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
movd xmm3, edi
cvtdq2pd xmm3, xmm3
movd xmm2, edx
cvtdq2pd xmm2, xmm2
addsd xmm3, xmm2
comisd xmm3, xmm2
ja 0x50a449
movaps xmm3, xmm2
movsd xmm5, qword [ecx + 0xa8]
movaps xmm4, xmm3
movsd xmm1, qword [ecx + 0xa0]
subsd xmm4, xmm2
movaps xmm0, xmm5
subsd xmm0, xmm1
comisd xmm4, xmm0
jb 0x50a47e
movups xmm0, xmmword [ecx + 0xa0]
movups xmmword [esp + 0x90], xmm0
jmp 0x50a4bd
comisd xmm1, xmm2
ja 0x50a48f
movaps xmm1, xmm5
subsd xmm1, xmm4
minsd xmm1, xmm2
movaps xmm0, xmm1
movsd qword [esp + 0x90], xmm1
subsd xmm0, xmm2
addsd xmm0, xmm3
comisd xmm0, xmm1
jbe 0x50a4b4
movsd qword [esp + 0x98], xmm0
jmp 0x50a4bd
movsd qword [esp + 0x98], xmm1
movsd xmm0, qword [ecx + 0xb0]
lea eax, [esp + 0x90]
movsd xmm2, qword [eax]
movsd xmm1, qword [eax + 8]
ucomisd xmm0, xmm2
lahf
test ah, 0x44
jp 0x50a4f1
movsd xmm0, qword [ecx + 0xb8]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x50a51d
movsd qword [ecx + 0xb0], xmm2
movsd qword [ecx + 0xb8], xmm1
call fcn.005094d0
mov ecx, dword [esp + 0x24]
lea ecx, [ecx + 0x88]
call fcn.0042fdb0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
cmp byte [esp + 0x17], 0
movd xmm0, dword [esi + 0x13c]
cvtdq2pd xmm0, xmm0
movsd qword [ecx + 0xc0], xmm0
je 0x50a543
xor eax, eax
test bh, bh
cmove edx, eax
mov dword [esp + 0x50], edx
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x34]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ebx, dword [esp + 0x24]
mov ecx, ebx
push dword [esp + 0x38]
mov eax, dword [ebx]
call dword [eax + 0x2c]
mov eax, dword [esi + 0x120]
test eax, eax
je 0x50a5ee
cmp dword [eax + 8], 0
je 0x50a5ee
push dword [esp + 0x50]
lea eax, [esp + 0x44]
mov ecx, esi
push dword [esp + 0x40]
push eax
call fcn.0050ae80
mov ecx, dword [esi + 0x120]
test ecx, ecx
je 0x50a596
mov eax, dword [ecx + 8]
jmp 0x50a598
xor eax, eax
movups xmm0, xmmword [eax + 0x1c]
mov edx, dword [esp + 0x40]
movd eax, xmm0
movaps xmmword [esp + 0x90], xmm0
cmp eax, edx
mov eax, dword [esp + 0x44]
jne 0x50a5bd
cmp dword [esp + 0x94], eax
je 0x50a5ee
test ecx, ecx
je 0x50a5d8
mov ecx, dword [ecx + 8]
push dword [ecx + 0x28]
push dword [ecx + 0x24]
push eax
push edx
call fcn.00500920
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push dword [ecx + 0x28]
push dword [ecx + 0x24]
push eax
push edx
call fcn.00500920
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
sub ebx, eax
sub ecx, edx
mov dword [esp + 0x70], eax
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x74], edx
cmovl ebx, dword [esp + 0x18]
cmp edi, ecx
mov eax, ebx
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x24]
cmovl ecx, edi
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x7c], ecx
cmp dword [esi + 0x124], eax
jne 0x50a652
cmp dword [esi + 0x128], edx
jne 0x50a652
mov eax, dword [esp + 0x50]
cmp dword [esi + 0x12c], eax
jne 0x50a652
cmp dword [esi + 0x130], ecx
je 0x50a66d
movups xmm0, xmmword [esp + 0x70]
mov eax, dword [esi]
lea ecx, [esp + 0x70]
push ecx
mov ecx, esi
movups xmmword [esi + 0x124], xmm0
call dword [eax + 0xb4]
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx + 0x88]
call fcn.0042f360
lea ecx, [ebx + 0x88]
call fcn.0042f360
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret