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

Disassembly:
sub esp, 0x68
push esi
mov esi, dword [0x100e6f58]
mov dword [esp + 0x4c], esi
mov eax, dword [esi + 0x3e40]
mov dword [esp + 0x58], eax
cmp byte [eax + 0xaf], 0
jne 0x10047765
push edi
mov edi, dword [esi + 0x49e4]
mov eax, dword [edi + 0x48]
mov dword [esp + 0x64], eax
imul eax, eax, 0x70
add eax, dword [edi + 0x10]
cmp dword [esp + 0x74], 0
mov dword [esp + 0x68], eax
mov eax, 0x100b1ca0
cmovne eax, dword [esp + 0x74]
xor ecx, ecx
push ecx
push eax
mov dword [esp + 0x5c], eax
call fcn.10011ea6
add esp, 4
mov dword [esp + 0x44], eax
xor ecx, ecx
inc ecx
mov dword [esp], 0xbf800000
push ecx
push eax
push dword [esp + 0x60]
lea eax, [esp + 0x40]
push eax
call fcn.1000926f
mov eax, dword [esp + 0x70]
push dword [esp + 0x78]
push edi
movss xmm0, dword [eax + 0xf0]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [eax + 0xf4]
lea eax, [esp + 0x34]
push eax
movss dword [esp + 0x5c], xmm0
call fcn.1004c124
movss xmm0, dword [edi + 0x94]
xor edx, edx
movss xmm1, dword [edi + 0x58]
addss xmm0, xmm0
mov ecx, dword [esp + 0x88]
add esp, 0x20
xorps xmm2, xmm2
mov byte [esp + 0x60], dl
mov word [esp + 0x61], dx
mov byte [esp + 0x63], dl
test byte [edi + 4], 8
subss xmm1, xmm0
xorps xmm0, xmm0
movss dword [esp + 0x48], xmm2
movss dword [esp + 0x4c], xmm0
maxss xmm1, dword [esp + 0x34]
movss dword [esp + 0x44], xmm1
je 0x1004720b
test dword [ecx], 0x200
jne 0x1004720b
movss xmm0, dword [esi + 0x3bd0]
mulss xmm0, dword [0x100b4c70]
addss xmm0, dword [esi + 0x37dc]
cvttss2si eax, xmm0
movd xmm1, eax
movzx eax, word [ecx + 0x5a]
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x4c], xmm1
test ax, ax
jle 0x1004720b
cwde
inc eax
push eax
push 0x100b2fdc
lea eax, [esp + 0x68]
push 4
push eax
call fcn.1000bbab
add esp, 0xc
lea eax, [esp + 0x64]
mov dword [esp], 0xbf800000
push 0
push 0
push eax
lea eax, [esp + 0x38]
push eax
call fcn.1000926f
movss xmm2, dword [esi + 0x37f4]
add esp, 0x14
mov ecx, dword [esp + 0x68]
xor edx, edx
addss xmm2, dword [eax]
movss dword [esp + 0x48], xmm2
movss xmm1, dword [esp + 0x30]
addss xmm1, dword [esp + 0x38]
movss xmm0, dword [ecx + 0x38]
maxss xmm0, dword [ecx + 0x48]
addss xmm1, xmm2
movss dword [ecx + 0x48], xmm0
movss xmm0, dword [ecx + 0x4c]
addss xmm1, dword [esp + 0x4c]
maxss xmm0, xmm1
movss dword [ecx + 0x4c], xmm0
cmp byte [edi + 0x1db], 0
je 0x10047263
movsx eax, word [edi + 0x1c4]
cmp eax, dword [esp + 0x64]
jne 0x10047263
mov ax, word [edi + 0x4e]
mov byte [esp + 0x6e], 1
cmp ax, word [edi + 0x4c]
je 0x10047267
mov byte [esp + 0x6e], dl
mov ecx, dword [esp + 0x5c]
push edx
push dword [esp + 0x58]
call fcn.1000cbbc
movss xmm1, dword [esi + 0x3800]
movss xmm0, dword [esp + 0x18]
addss xmm1, xmm1
movss xmm2, dword [esp + 0x20]
and dword [esp + 0x28], 0
movss dword [esp + 8], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x10], xmm2
movss xmm2, dword [esp + 0x44]
movss dword [esp + 0xc], xmm0
addss xmm0, xmm2
push ecx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x2c]
mov dword [esp], 0xbf800000
push eax
addss xmm1, xmm0
movss dword [esp + 0x34], xmm2
maxss xmm1, dword [esp + 0x2c]
movss dword [esp + 0x1c], xmm1
call fcn.1000ec1d
push 0
push 0
push dword [esp + 0x68]
lea eax, [esp + 0x1c]
push eax
call fcn.1000ed6e
add esp, 0x18
test al, al
je 0x10047764
push 0x1000
lea eax, [esp + 0x73]
push eax
lea eax, [esp + 0x75]
push eax
push dword [esp + 0x64]
lea eax, [esp + 0x18]
push eax
call fcn.1005af92
mov byte [esp + 0x80], al
add esp, 0x14
mov eax, dword [esp + 0x58]
cmp dword [esi + 0x3e8c], eax
je 0x10047335
call fcn.10008e26
mov dl, byte [esp + 0x6f]
mov cl, byte [esp + 0x6d]
test dl, dl
jne 0x10047372
test cl, cl
jne 0x10047372
cmp byte [esp + 0x6e], cl
jne 0x10047372
test byte [edi + 0x64], 1
jne 0x100473a0
mov esi, dword [edi + 0x48]
push ecx
mov dword [esp], 0x3f800000
push 0x2a
call fcn.10007296
push esi
push eax
push 3
call fcn.1004786d
mov esi, dword [esp + 0x64]
jmp 0x1004739d
xor eax, eax
test cl, cl
push ecx
setne al
mov dword [esp], 0x3f800000
add eax, 0x18
test dl, dl
push 0x1a
pop ecx
cmovne eax, ecx
push eax
call fcn.10007296
push dword [edi + 0x48]
push eax
push 3
call fcn.1004786d
add esp, 0x14
push 0xa
push dword [esp + 0x5c]
lea eax, [esp + 0x10]
push eax
call fcn.10011c65
add esp, 0xc
cmp byte [esp + 0x6f], 0
je 0x100473c5
mov eax, dword [esp + 0x64]
mov word [edi + 0x1b6], ax
movss xmm1, dword [esi + 0x37f0]
or edx, 0xffffffff
mov eax, dword [esp + 0x5c]
mulss xmm1, dword [0x100b4c68]
movss xmm0, dword [eax + 0xf4]
subss xmm0, xmm1
movss dword [eax + 0xf4], xmm0
cmp byte [esp + 0x6f], 0
je 0x1004752a
test byte [edi + 4], 2
je 0x1004752a
push ecx
mov dword [esp], 0xbf800000
push 0
call fcn.1000994c
pop ecx
pop ecx
test al, al
je 0x10047527
cmp byte [esi + 0x4944], 0
jne 0x10047527
mov eax, dword [esp + 0x64]
xorps xmm1, xmm1
mov ecx, dword [esp + 0x68]
or edx, 0xffffffff
mov word [edi + 0x1b8], ax
mov ax, word [edi + 0x4c]
mov word [edi + 0x4e], ax
comiss xmm1, dword [esi + 0xb8]
jbe 0x100474ba
movss xmm0, dword [esp + 0x18]
comiss xmm0, dword [esi + 0xdc0]
jbe 0x100474ba
movzx eax, word [ecx + 0x56]
cmp ax, dx
je 0x100474ba
cwde
imul edx, eax, 0x70
add edx, dword [edi + 0x10]
mov dword [esp + 0x58], edx
je 0x100474b7
mov eax, dword [ecx]
or eax, dword [edx]
test al, 0x40
jne 0x100474b7
mov eax, dword [esp + 0x68]
xor edx, edx
movzx ecx, word [edi + 0x1ca]
mov esi, dword [esp + 0x58]
cmp word [eax + 0x54], cx
setl dl
xor eax, eax
cmp word [esi + 0x54], cx
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x68]
setl al
cmp edx, eax
jne 0x100474b7
or edx, 0xffffffff
mov word [edi + 0x1ba], dx
jmp 0x100474ba
or edx, 0xffffffff
movss xmm0, dword [esi + 0xb8]
comiss xmm0, xmm1
jbe 0x1004752a
movss xmm0, dword [esi + 0xdc0]
comiss xmm0, dword [esp + 0x20]
jbe 0x1004752a
movzx eax, word [ecx + 0x58]
cmp ax, dx
je 0x1004752a
cwde
imul edx, eax, 0x70
add edx, dword [edi + 0x10]
mov dword [esp + 0x58], edx
je 0x10047527
mov eax, dword [ecx]
or eax, dword [edx]
test al, 0x40
jne 0x10047527
mov eax, dword [esp + 0x58]
xor edx, edx
movzx ecx, word [edi + 0x1ca]
mov esi, dword [esp + 0x68]
cmp word [eax + 0x54], cx
setl dl
xor eax, eax
cmp word [esi + 0x54], cx
mov esi, dword [esp + 0x50]
setl al
cmp eax, edx
jne 0x10047527
xor eax, eax
inc eax
mov word [edi + 0x1ba], ax
or edx, 0xffffffff
test byte [edi + 4], 8
movss xmm0, dword [esp + 0x20]
subss xmm0, dword [esp + 0x4c]
subss xmm0, dword [esp + 0x48]
movss dword [esp + 0x50], xmm0
je 0x10047694
mov ecx, dword [esp + 0x68]
test dword [ecx], 0x200
jne 0x10047694
movzx eax, word [ecx + 0x5a]
cmp ax, dx
je 0x10047664
maxss xmm0, dword [esp + 0x18]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x4c], xmm0
test ax, ax
jle 0x100475fa
push ecx
mov dword [esp], 0x3f333333
push 0
call fcn.10007296
push eax
push 0
call fcn.10006e7f
movss xmm0, dword [esp + 0x68]
xor eax, eax
addss xmm0, dword [esi + 0x37f4]
inc eax
push eax
push 0
lea eax, [esp + 0x78]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x64]
push eax
movss dword [esp + 0x48], xmm0
push dword [esp + 0x48]
push dword [esp + 0x48]
call fcn.100112f8
xor eax, eax
inc eax
push eax
call fcn.10006f1c
movss xmm0, dword [esp + 0x80]
add esp, 0x28
addss xmm0, dword [esp + 0x48]
mov ecx, dword [esp + 0x68]
movss dword [esp + 0x58], xmm0
mov al, byte [ecx + 0x6d]
xor ecx, ecx
and al, 3
cmp al, 1
setne cl
add ecx, 2
push ecx
mov dword [esp], 0x3f800000
push 0
mov dword [esp + 0x50], ecx
call fcn.10007296
movss xmm0, dword [esp + 0x60]
add esp, 4
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x50]
movss dword [esp + 0x30], xmm0
mov dword [esp], 0x3f266666
push dword [esp + 0x4c]
push eax
push dword [esp + 0x38]
mov eax, dword [esp + 0x6c]
push dword [esp + 0x38]
push dword [eax + 0x264]
call fcn.1003c09a
mov ecx, dword [esp + 0x80]
add esp, 0x18
cmp byte [esp + 0x6c], 0
je 0x10047694
movsx eax, word [edi + 0x1b8]
mov edi, dword [esp + 0x64]
cmp eax, edi
je 0x10047698
push ecx
call fcn.1004b7c9
movzx ecx, byte [esi + 0xdd9]
push ecx
push eax
push edi
call fcn.10048728
add esp, 0x10
jmp 0x10047698
mov edi, dword [esp + 0x64]
movss xmm1, dword [esp + 0x50]
lea eax, [esp + 0x30]
movss xmm0, dword [esp + 0x3c]
addss xmm0, dword [esp + 0x44]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x30]
movss dword [esp + 0x30], xmm1
push dword [esp + 0x5c]
addss xmm0, dword [esi + 0x37e0]
push ecx
push ecx
movss dword [esp + 4], xmm1
movss dword [esp], xmm1
push eax
lea eax, [esp + 0x50]
movss dword [esp + 0x44], xmm0
push eax
mov eax, dword [esp + 0x78]
push dword [eax + 0x264]
call fcn.100116bd
movss xmm1, dword [esp + 0x70]
add esp, 0x20
subss xmm1, dword [esp + 0x38]
movss xmm0, dword [esp + 0x30]
comiss xmm0, xmm1
jbe 0x10047743
cmp byte [esp + 0x6d], 0
je 0x10047743
cmp dword [esi + 0x3e8c], 0
jne 0x10047743
push 0x800
call fcn.10008af5
pop ecx
test al, al
je 0x10047743
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
push ecx
sub eax, ecx
push eax
push str._.s
call fcn.10007b4f
add esp, 0xc
xor eax, eax
inc eax
push eax
call fcn.10009760
pop ecx
test al, al
je 0x10047764
push 0
call fcn.10008af5
pop ecx
test al, al
je 0x10047764
push edi
call fcn.100485c3
pop ecx
pop edi
pop esi
add esp, 0x68
ret