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

Disassembly:
sub esp, 0xc8
mov eax, dword [0x1010e440]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [0x1010ef08]
push esi
mov esi, dword [esp + 0xd0]
mov dword [esp + 0x48], eax
push edi
xor edi, edi
mov dword [esp + 0x58], esi
mov eax, dword [esi + 0x160]
mov dword [esp + 0x54], eax
movzx eax, word [esi + 0x1c8]
mov ecx, eax
mov dword [esp + 0x3c], eax
movzx eax, word [esi + 0x1cc]
mov dword [esp + 8], ecx
mov ecx, eax
push 0x60
mov dword [esp + 0x14], eax
lea eax, [esp + 0x70]
push edi
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x70], edi
call fcn.10093b80
add esp, 0xc
lea eax, [esp + 0x70]
push 4
pop ecx
and dword [eax - 4], edi
and dword [eax], edi
lea eax, [eax + 0x18]
and dword [eax - 0x14], edi
and dword [eax - 0x10], edi
sub ecx, 1
jne 0x1004b88b
mov eax, dword [esi + 0x40]
mov ecx, dword [esp + 0x4c]
add ecx, 0x5c0c
lea eax, [eax*2 + 0x23]
sar eax, 3
and eax, 0xfffffffc
imul esi, eax, 5
mov dword [esp + 0x18], eax
push esi
call fcn.1001fc02
mov eax, dword [esp + 0x4c]
push esi
push edi
push dword [eax + 0x5c14]
call fcn.10093b80
add esp, 0xc
lea edx, [esp + 0x80]
mov ecx, edi
mov edi, dword [esp + 0x18]
push 4
pop esi
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x5c14]
add eax, ecx
add ecx, edi
mov dword [edx], eax
lea edx, [edx + 0x18]
sub esi, 1
jne 0x1004b8e9
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x58]
mov eax, dword [eax + 0x5c14]
lea eax, [eax + edi*4]
xor edi, edi
mov dword [esp + 0x38], eax
mov eax, edi
mov dword [esp + 0x48], eax
cmp dword [esi + 0x40], edi
jle 0x1004be92
mov dword [esp + 0x44], edi
xor edx, edx
mov ecx, eax
and ecx, 0x1f
inc edx
shl edx, cl
mov ecx, eax
mov eax, dword [esi + 0x30]
sar ecx, 5
test dword [eax + ecx*4], edx
je 0x1004bb42
mov esi, dword [esi + 0x10]
xor eax, eax
add esi, dword [esp + 0x44]
mov edx, edi
cmp word [esp + 0x3c], ax
mov dword [esp + 0x24], esi
setg al
mov dword [esp + 0x5c], edi
inc eax
mov dword [esp + 0x1c], eax
test edx, edx
jne 0x1004b970
movzx eax, word [esi + 0x5e]
jmp 0x1004b974
movzx eax, word [esi + 0x60]
movzx eax, ax
imul ecx, eax, 0x18
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x54]
add ecx, dword [eax + 0x10]
mov dword [esp + 0x68], ecx
mov eax, dword [ecx]
mov ecx, eax
test eax, eax
jle 0x1004b9da
imul ecx, eax, 0x28
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x40]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x50], ecx
mov ecx, eax
mov esi, dword [esp + 0x50]
cmp dword [edx + esi - 0xc], edi
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x5c]
jne 0x1004b9da
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x50]
cmp dword [edx + esi - 8], edi
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x5c]
jne 0x1004b9da
lea ecx, [eax - 1]
mov eax, dword [esp + 0x68]
mov dword [eax], ecx
cmp ecx, 1
jne 0x1004bb26
test dword [esi], 0x100
jne 0x1004ba1d
cmp word [esp + 0x3c], di
jg 0x1004b9fe
movss xmm0, dword [esi + 0x48]
maxss xmm0, dword [esi + 0x44]
jmp 0x1004ba13
test edx, edx
jne 0x1004ba0e
movss xmm0, dword [esi + 0x48]
maxss xmm0, dword [esi + 0x40]
jmp 0x1004ba13
movss xmm0, dword [esi + 0x44]
comiss xmm0, dword [esi + 0x28]
ja 0x1004bb26
cmp word [esp + 0x10], di
jle 0x1004ba39
mov eax, dword [esp + 0x58]
movsx eax, word [eax + 0x1cc]
cmp dword [esp + 0x48], eax
jge 0x1004ba39
mov ecx, edi
jmp 0x1004ba3c
xor ecx, ecx
inc ecx
cmp word [esp + 0x3c], di
jle 0x1004ba4b
test edx, edx
jne 0x1004ba4b
mov eax, edi
jmp 0x1004ba4e
push 2
pop eax
add eax, ecx
mov dword [esp + 0x20], eax
imul eax, eax, 0x18
mov dword [esp + 0x40], eax
lea ecx, [esp + eax + 0x70]
mov dword [esp + 0x50], ecx
cmp dword [esp + eax + 0x7c], edi
jne 0x1004ba89
mov dword [esp + eax + 0x6c], 0x7f7fffff
mov dword [ecx], 0x7f7fffff
mov dword [esp + eax + 0x74], 0xff7fffff
mov dword [esp + eax + 0x78], 0xff7fffff
jmp 0x1004ba8d
mov dword [esp + 0x50], ecx
mov edx, dword [esp + eax + 0x80]
mov eax, dword [esp + 0x60]
mov ecx, eax
shr ecx, 5
and eax, 0x1f
mov dword [esp + 0x60], eax
mov esi, dword [esp + 0x60]
mov eax, dword [edx + ecx*4]
bts eax, esi
mov esi, dword [esp + 0x24]
mov dword [edx + ecx*4], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x68]
inc dword [esp + ecx + 0x7c]
mov eax, dword [eax + 8]
movss xmm0, dword [esp + ecx + 0x6c]
movss xmm4, dword [eax]
comiss xmm0, xmm4
movss xmm1, dword [eax + 4]
movss xmm2, dword [eax + 8]
movss xmm3, dword [eax + 0xc]
jbe 0x1004bae8
movss dword [esp + ecx + 0x6c], xmm4
mov eax, dword [esp + 0x50]
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x1004baf9
movss dword [eax], xmm1
comiss xmm2, dword [esp + ecx + 0x74]
jbe 0x1004bb06
movss dword [esp + ecx + 0x74], xmm2
comiss xmm3, dword [esp + ecx + 0x78]
jbe 0x1004bb13
movss dword [esp + ecx + 0x78], xmm3
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x20]
bts eax, ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x64], eax
inc edx
mov dword [esp + 0x5c], edx
cmp edx, dword [esp + 0x1c]
jl 0x1004b966
mov eax, 0xffff
mov word [esi + 0x5c], ax
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
add dword [esp + 0x44], 0x70
inc eax
mov dword [esp + 0x48], eax
cmp eax, dword [esi + 0x40]
jl 0x1004b92b
cmp dword [esp + 0x64], edi
je 0x1004be92
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
mov eax, dword [edi + 4]
sub eax, 2
lea ecx, [ecx + 0x4a24]
push eax
call fcn.10020085
push dword [edi + 4]
mov ecx, dword [esp + 0x50]
push 2
push dword [esp + 0x40]
mov eax, dword [ecx + 0x4a2c]
mov dword [esp + 0x74], eax
call fcn.1004e3ed
movzx edx, word [esi + 0x1d4]
add esp, 0xc
mov eax, dword [esp + 0x38]
mov ecx, edx
shr ecx, 5
and edx, 0x1f
mov eax, dword [eax + ecx*4]
btr eax, edx
mov edx, dword [esp + 0x38]
mov dword [edx + ecx*4], eax
xor eax, eax
cmp word [esp + 0x3c], ax
mov ecx, dword [edi + 4]
lea edi, [esp + 0x28]
setg al
add esi, 0x12c
add eax, 2
sub ecx, eax
xor eax, eax
mov dword [esp + 0x60], ecx
mov ecx, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movss xmm5, dword [esp + 0x34]
movss xmm6, dword [esp + 0x30]
movss xmm7, dword [esp + 0x2c]
movss xmm4, dword [esp + 0x28]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x5c], ecx
imul esi, ecx, 0x18
mov edi, dword [esp + esi + 0x7c]
mov dword [esp + 0x44], edi
test edi, edi
je 0x1004bdb7
lea edi, [esp + 0x6c]
add esi, edi
lea edi, [esp + 0x28]
mov dword [esp + 0x64], esi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, ecx
and edi, 1
je 0x1004bc40
cmp word [esp + 0xc], 0
jle 0x1004bc40
movss xmm3, dword [esp + 0x28]
jmp 0x1004bc54
movss xmm3, dword [esp + 0x28]
comiss xmm4, xmm3
ja 0x1004bc54
movaps xmm3, xmm4
movss dword [esp + 0x28], xmm3
mov esi, ecx
and esi, 2
je 0x1004bc6b
cmp word [esp + 0x3c], 0
jle 0x1004bc6b
movss xmm2, dword [esp + 0x2c]
jmp 0x1004bc7f
movss xmm2, dword [esp + 0x2c]
comiss xmm7, xmm2
ja 0x1004bc7f
movaps xmm2, xmm7
movss dword [esp + 0x2c], xmm2
movss xmm1, dword [esp + 0x30]
test edi, edi
je 0x1004bc97
comiss xmm1, xmm6
jae 0x1004bc97
movaps xmm1, xmm6
movss dword [esp + 0x30], xmm1
test esi, esi
je 0x1004bcba
test dword [edx + 4], 0x20000
jne 0x1004bcba
movss xmm0, dword [esp + 0x34]
comiss xmm0, xmm5
jae 0x1004bcc0
movaps xmm0, xmm5
movss dword [esp + 0x34], xmm0
jmp 0x1004bcc0
movss xmm0, dword [esp + 0x34]
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x60]
sub esi, dword [edi + 0x10]
mov edi, dword [esp + 0x18]
sar edi, 2
mov dword [esp + 0x60], esi
mov esi, eax
test edi, edi
jle 0x1004bcfe
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x38]
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + esi*4]
not eax
and dword [edx + esi*4], eax
inc esi
cmp esi, edi
jl 0x1004bce4
mov edx, dword [esp + 0x58]
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x54]
mov esi, eax
mov dword [esp + 0x40], esi
cmp dword [edi + 4], eax
jle 0x1004bdbb
mov dword [esp + 0x48], eax
cmp dword [esp + 0x44], 0
je 0x1004bdab
mov ecx, dword [esp + 0x64]
mov eax, esi
sar eax, 5
mov dword [esp + 0x1c], eax
mov edx, dword [ecx + 0x14]
mov ecx, esi
and ecx, 0x1f
mov dword [esp + 0x20], edx
mov eax, dword [edx + eax*4]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x50], eax
xor eax, eax
inc eax
shl eax, cl
test dword [esp + 0x50], eax
je 0x1004bd98
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x1c]
btr esi, ecx
mov ecx, dword [esp + 0x20]
dec dword [esp + 0x44]
push 6
mov dword [ecx + eax*4], esi
mov esi, dword [edi + 0x10]
mov edi, edx
add esi, dword [esp + 0x4c]
add edx, 0x18
pop ecx
mov dword [esp + 0x68], edx
mov eax, dword [esi + 8]
movss dword [eax], xmm3
movss dword [eax + 4], xmm2
movss dword [eax + 8], xmm1
movss dword [eax + 0xc], xmm0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x54]
add dword [esp + 0x48], 0x18
inc esi
mov dword [esp + 0x40], esi
cmp esi, dword [edi + 4]
jl 0x1004bd15
mov edx, dword [esp + 0x58]
xor eax, eax
mov ecx, dword [esp + 0x5c]
jmp 0x1004bdbb
mov edi, dword [esp + 0x54]
cmp ecx, 1
jne 0x1004bdfb
cmp word [esp + 8], 0
jle 0x1004bdfb
mov eax, dword [esp + 0x68]
mov edi, eax
add eax, 0x18
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x58]
push 6
pop ecx
movzx eax, word [eax + 0x1d4]
imul esi, eax, 0x18
mov eax, dword [esp + 0x54]
add esi, dword [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x5c]
inc ecx
xor eax, eax
jmp 0x1004bbfc
inc ecx
mov dword [esp + 0x5c], ecx
cmp ecx, 4
jl 0x1004bc04
mov ecx, dword [edi + 4]
test ecx, ecx
jle 0x1004be72
mov esi, dword [esp + 0x60]
mov dword [esp + 0x64], eax
test esi, esi
je 0x1004be72
xor edx, edx
mov ecx, eax
and ecx, 0x1f
sar eax, 5
inc edx
shl edx, cl
mov ecx, dword [esp + 0x38]
test dword [ecx + eax*4], edx
mov edx, dword [esp + 0x64]
je 0x1004be5b
mov eax, dword [esp + 0x68]
mov edi, eax
add eax, 0x18
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x54]
push 6
pop ecx
mov esi, dword [eax + 0x10]
add esi, edx
dec dword [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x60]
mov edi, eax
mov eax, dword [esp + 0x14]
add edx, 0x18
mov ecx, dword [edi + 4]
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x64], edx
cmp eax, ecx
jl 0x1004be18
imul eax, ecx, 0x18
sub eax, 0x30
push eax
mov eax, dword [esp + 0x50]
push dword [eax + 0x4a2c]
mov eax, dword [edi + 0x10]
add eax, 0x30
push eax
call fcn.10093600
add esp, 0xc
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
xor ecx, esp
call fcn.10090b29
add esp, 0xc8
ret