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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x103ef7a4]
xor eax, esp
mov dword [esp + 0x94], eax
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], edx
mov esi, dword [edx + 0x54]
mov eax, dword [edx + 0x58]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], esi
mov ecx, dword [esi + 0x9c]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
mov ecx, dword [ecx]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0x10]
sar ecx, 0x10
and ecx, 0xf
cmp dword [eax + 0xc], 0
je 0x1005b949
cmp dword [eax + 4], ecx
je 0x1005b974
mov esi, dword [esp + 0x14]
mov dword [eax + 4], ecx
movups xmm0, xmmword [esi + 0xc]
movups xmmword [eax + 8], xmm0
movq xmm0, qword [esi + 0x1c]
movq qword [eax + 0x18], xmm0
mov eax, dword [esi + 0x24]
mov esi, dword [esp + 0x18]
mov dword [esi + 0x20], eax
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], 0
mov eax, dword [eax + 0x10]
mov dword [edi], edx
mov dword [esp + 0x58], eax
mov eax, dword [edx + 0x74]
lea edx, [edi + 4]
mov dword [esp + 0x64], ecx
xor ecx, ecx
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
mov dword [edx], eax
test eax, eax
jne 0x1005b9eb
push dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
call fcn.10057140
mov ecx, eax
lea edx, [edi + 4]
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x1005c13b
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx]
mov dword [ecx + 0x74], eax
mov dword [ecx + 0x78], fcn.10057230
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x1005c13b
mov eax, dword [edx]
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], edx
cmp ecx, dword [eax + 4]
jb 0x1005ba1e
lea eax, [edx + 6]
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.10117c9f
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 8]
movzx ecx, word [eax + ecx*2]
and ecx, 0x3fff
mov eax, dword [ecx*4 + 0x10243850]
add ecx, 4
mov dword [esp + 0x14], eax
mov eax, dword [eax + 4]
mov eax, dword [eax*4 + 0x10240e50]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ecx]
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x1005bafe
mov eax, dword [eax]
mov ecx, dword [eax + 0x64]
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 4]
call fcn.1000e6e0
mov edx, dword [esp + 0x3c]
add esp, 4
mov ecx, eax
mov dword [esp + 0x18], ecx
test edx, edx
jne 0x1005c125
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x24], eax
mov esi, dword [esi + 8]
test esi, esi
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x24]
je 0x1005baf8
push dword [eax]
push ecx
call dword [esp + 0x1c]
mov edx, eax
add esp, 8
mov dword [esp + 0x14], edx
test edx, edx
je 0x1005baf4
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1005bad7
push dword [esp + 0x18]
call eax
add esp, 4
mov eax, dword [esp + 0x28]
push dword [esp + 0x18]
push eax
mov eax, dword [eax + 8]
call eax
mov edx, dword [esp + 0x1c]
add esp, 8
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x1005bafe
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
test edx, edx
jne 0x1005c125
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [edi + 0xc], ecx
mov eax, dword [eax*4 + 0x10240e50]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1005bb31
lea edx, [esp + 0x50]
push edx
push ecx
call eax
mov ecx, dword [esp + 0x20]
add esp, 8
jmp 0x1005bb4c
movups xmm0, xmmword [esp + 0x50]
movups xmmword [ecx + 4], xmm0
movq xmm0, qword [esp + 0x60]
movq qword [ecx + 0x14], xmm0
mov eax, dword [esp + 0x68]
mov dword [ecx + 0x1c], eax
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x18]
test edx, edx
je 0x1005bb6a
mov eax, dword [esp + 0x40]
push ecx
push eax
call edx
add esp, 8
test eax, eax
jne 0x1005c13d
mov eax, dword [ebp + 0x10]
and eax, 0xfffffffb
or eax, 0x2801
push eax
push dword [ebp + 0xc]
push dword [esp + 0x34]
call fcn.10009160
add esp, 0xc
mov dword [esp + 0x38], eax
test eax, eax
jne 0x1005c13d
cmp dword [esp + 0x64], 1
jne 0x1005bbc5
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x80]
mov al, byte [eax + 0x38]
test al, al
je 0x1005bbb5
jns 0x1005bbc5
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x15], 0
jne 0x1005bbc5
push dword [esp + 0x18]
mov edx, ecx
mov ecx, edi
call fcn.1005b630
add esp, 4
mov edx, dword [esp + 0x20]
mov al, byte [edx + 8]
mov byte [edi + 0x10], al
test al, al
je 0x1005bceb
movups xmm0, xmmword [edx + 0xc]
movups xmmword [edi + 0x14], xmm0
mov eax, dword [edx + 0x1c]
movups xmm1, xmmword [edi + 0x14]
mov dword [edi + 0x24], eax
mov eax, dword [edx + 0x20]
movaps xmm0, xmm1
mov dword [edi + 0x28], eax
psrldq xmm0, 0xc
movaps xmmword [esp + 0x80], xmm1
movd dword [esp + 0x30], xmm0
movd dword [esp + 0x28], xmm1
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
movaps xmm0, xmm1
psrldq xmm0, 8
psrldq xmm1, 4
mov dword [esp + 0x2c], eax
movd dword [esp + 0x44], xmm0
movd dword [esp + 0x34], xmm1
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x44]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
je 0x1005bceb
mov ecx, dword [esp + 0x34]
mov edx, eax
call fcn.10007ca0
mov edx, dword [esp + 0x2c]
neg eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x84], eax
call fcn.10007ca0
mov edx, dword [esp + 0x2c]
neg eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x88], eax
call fcn.10007ca0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x80], eax
call fcn.10007ca0
lea ecx, [edi + 0x24]
mov dword [esp + 0x8c], eax
test ecx, ecx
je 0x1005bceb
lea edx, [esp + 0x80]
call fcn.1000c4b0
cmp dword [esi + 0x48], 0x6f75746c
je 0x1005bd01
mov dword [esp + 0x38], 7
jmp 0x1005bed6
cmp byte [edi + 0x10], 0
je 0x1005bd1c
lea ecx, [esi + 0x6c]
test ecx, ecx
je 0x1005bd1c
push dword [edi + 0x28]
mov edx, dword [edi + 0x24]
call fcn.1000c470
add esp, 4
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 8]
mov dword [edi + 0x2c], eax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x30], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 8]
add eax, dword [esp + 0x28]
mov dword [edi + 0x34], eax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x38], eax
cmp word [esi + 0x6e], 0
je 0x1005bed6
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x1c]
test edx, edx
je 0x1005bdaf
push dword [esp + 0x18]
mov eax, dword [esp + 0x40]
add eax, 0x14
push eax
push ecx
push dword [ebp + 0xc]
call edx
add esp, 0x10
mov dword [esp + 0x38], eax
test eax, eax
jne 0x1005c13d
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x64], 1
je 0x1005bea3
mov eax, dword [ecx + 0x38]
cmp eax, 1
jle 0x1005be7b
test byte [ecx + 0xab4], 4
jne 0x1005be7b
mov ecx, dword [ecx + 0x40]
imul esi, eax, 0x2c
mov eax, dword [edi + 0x34]
sub eax, dword [esi + ecx - 0x28]
mov edx, dword [ecx + 8]
add esi, ecx
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
mov eax, dword [esi - 0x24]
add eax, dword [esp + 0x30]
cmp dword [esp + 0x14], 0x18
lea esi, [ecx - 8]
cmovge esi, ecx
cmp dword [esp + 0x30], 0x18
lea ecx, [eax + 8]
mov dword [esp + 0x28], esi
cmovge ecx, eax
mov dword [esp + 0x34], ecx
add ecx, 0x20
and ecx, 0xffffffc0
lea eax, [esi + 0x20]
and eax, 0xffffffc0
mov dword [esp + 0x20], ecx
mov dword [edi + 0x34], ecx
mov ecx, eax
mov dword [edi + 0x2c], eax
cmp eax, edx
jl 0x1005be46
cmp dword [esp + 0x14], 0
jle 0x1005be46
lea ecx, [eax - 0x40]
mov dword [edi + 0x2c], ecx
mov esi, dword [esp + 0x1c]
mov eax, ecx
mov edx, dword [esp + 0x20]
cmp edx, dword [esi - 0x24]
mov esi, dword [esp + 0x24]
jg 0x1005be68
cmp dword [esp + 0x30], 0
jle 0x1005be68
lea eax, [edx + 0x40]
mov dword [edi + 0x34], eax
mov eax, ecx
sub eax, dword [esp + 0x28]
mov dword [esi + 0x90], eax
mov eax, dword [edi + 0x34]
sub eax, dword [esp + 0x34]
jmp 0x1005bed0
mov edx, dword [edi + 0x2c]
mov eax, dword [ecx + 0xac0]
mov esi, dword [edi + 0x34]
lea ecx, [edx + 0x20]
add ecx, eax
mov eax, dword [esp + 0x40]
and ecx, 0xffffffc0
mov dword [edi + 0x2c], ecx
mov eax, dword [eax + 0xac4]
add eax, 0x20
add eax, esi
jmp 0x1005beb5
mov edx, dword [edi + 0x2c]
mov esi, dword [edi + 0x34]
lea ecx, [edx + 0x20]
and ecx, 0xffffffc0
lea eax, [esi + 0x20]
mov dword [edi + 0x2c], ecx
and eax, 0xffffffc0
sub ecx, edx
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x24]
mov dword [eax + 0x90], ecx
mov eax, dword [edi + 0x34]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esi + 0x94], eax
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x30]
sub eax, dword [esi + 0x24]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x20]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
add esi, 0x14
cmp byte [edi + 0x10], 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], ecx
je 0x1005bf9b
lea eax, [edi + 0x14]
test esi, esi
je 0x1005bf80
mov edx, eax
mov ecx, esi
call fcn.1000c5a0
lea eax, [edi + 0x14]
mov edx, eax
lea ecx, [esp + 0x48]
call fcn.1000c4b0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov edx, dword [edi + 0x2c]
test edx, edx
je 0x1005bfb4
test esi, esi
je 0x1005bfb4
push 0
neg edx
mov ecx, esi
call fcn.1000c470
add esp, 4
lea edx, [esp + 0x70]
mov ecx, esi
call fcn.1000c3c0
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x70]
add eax, 0x3f
mov ecx, dword [esp + 0x24]
and eax, 0xffffffc0
mov edx, dword [esp + 0x7c]
and esi, 0xffffffc0
sub eax, esi
add edx, 0x3f
and edx, 0xffffffc0
mov dword [ecx + 0x18], eax
mov eax, edx
mov ecx, dword [esp + 0x74]
and ecx, 0xffffffc0
sub eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x14]
add eax, esi
mov dword [ecx + 0x20], esi
and eax, 0xffffffc0
mov dword [ecx + 0x24], edx
mov esi, ecx
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x28]
add eax, edx
and eax, 0xffffffc0
mov dword [esi + 0x30], eax
cmp dword [esp + 0x64], 1
je 0x1005c051
mov eax, dword [esi + 4]
test byte [eax + 8], 4
jne 0x1005c0d0
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 4]
jae 0x1005c051
mov eax, dword [eax + 8]
mov ax, word [eax + ecx*2]
shr ax, 0xf
test al, al
je 0x1005c051
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x20], 0
jne 0x1005c0d4
cmp dword [esi + 0x28], 0
je 0x1005c060
mov eax, dword [edi + 0x34]
sub eax, dword [edi + 0x2c]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x28]
add eax, 0x20
mov dword [esi + 0x48], 0x6f75746c
and eax, 0xffffffc0
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x3c]
add eax, 0x20
and eax, 0xffffffc0
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x38]
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.10117c9f
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
jmp 0x1005c05d
mov eax, edx
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.10117c9f
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.10117c9f
mov esp, ebp
pop ebp
ret