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

Disassembly:
sub esp, 0x68
push esi
mov esi, dword [0x1010ef08]
mov dword [esp + 0x4c], esi
mov eax, dword [esi + 0x3e40]
mov dword [esp + 0x58], eax
cmp byte [eax + 0xaf], 0
jne 0x1004818c
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, 0x100b8e30
cmovne eax, dword [esp + 0x74]
xor ecx, ecx
push ecx
push eax
mov dword [esp + 0x5c], eax
call fcn.100128e0
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.10009ca9
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.1004cb4b
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 0x10047c32
test dword [ecx], 0x200
jne 0x10047c32
movss xmm0, dword [esi + 0x3bd0]
mulss xmm0, dword [0x100bbe00]
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 0x10047c32
cwde
inc eax
push eax
push 0x100ba16c
lea eax, [esp + 0x68]
push 4
push eax
call fcn.1000c5e5
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.10009ca9
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 0x10047c8a
movsx eax, word [edi + 0x1c4]
cmp eax, dword [esp + 0x64]
jne 0x10047c8a
mov ax, word [edi + 0x4e]
mov byte [esp + 0x6e], 1
cmp ax, word [edi + 0x4c]
je 0x10047c8e
mov byte [esp + 0x6e], dl
mov ecx, dword [esp + 0x5c]
push edx
push dword [esp + 0x58]
call fcn.1000d5f6
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.1000f657
push 0
push 0
push dword [esp + 0x68]
lea eax, [esp + 0x1c]
push eax
call fcn.1000f7a8
add esp, 0x18
test al, al
je 0x1004818b
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.1005b9bb
mov byte [esp + 0x80], al
add esp, 0x14
mov eax, dword [esp + 0x58]
cmp dword [esi + 0x3e8c], eax
je 0x10047d5c
call fcn.10009860
mov dl, byte [esp + 0x6f]
mov cl, byte [esp + 0x6d]
test dl, dl
jne 0x10047d99
test cl, cl
jne 0x10047d99
cmp byte [esp + 0x6e], cl
jne 0x10047d99
test byte [edi + 0x64], 1
jne 0x10047dc7
mov esi, dword [edi + 0x48]
push ecx
mov dword [esp], 0x3f800000
push 0x2a
call fcn.10007cd0
push esi
push eax
push 3
call fcn.10048294
mov esi, dword [esp + 0x64]
jmp 0x10047dc4
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.10007cd0
push dword [edi + 0x48]
push eax
push 3
call fcn.10048294
add esp, 0x14
push 0xa
push dword [esp + 0x5c]
lea eax, [esp + 0x10]
push eax
call fcn.1001269f
add esp, 0xc
cmp byte [esp + 0x6f], 0
je 0x10047dec
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 [0x100bbdf8]
movss xmm0, dword [eax + 0xf4]
subss xmm0, xmm1
movss dword [eax + 0xf4], xmm0
cmp byte [esp + 0x6f], 0
je 0x10047f51
test byte [edi + 4], 2
je 0x10047f51
push ecx
mov dword [esp], 0xbf800000
push 0
call fcn.1000a386
pop ecx
pop ecx
test al, al
je 0x10047f4e
cmp byte [esi + 0x4944], 0
jne 0x10047f4e
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 0x10047ee1
movss xmm0, dword [esp + 0x18]
comiss xmm0, dword [esi + 0xdc0]
jbe 0x10047ee1
movzx eax, word [ecx + 0x56]
cmp ax, dx
je 0x10047ee1
cwde
imul edx, eax, 0x70
add edx, dword [edi + 0x10]
mov dword [esp + 0x58], edx
je 0x10047ede
mov eax, dword [ecx]
or eax, dword [edx]
test al, 0x40
jne 0x10047ede
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 0x10047ede
or edx, 0xffffffff
mov word [edi + 0x1ba], dx
jmp 0x10047ee1
or edx, 0xffffffff
movss xmm0, dword [esi + 0xb8]
comiss xmm0, xmm1
jbe 0x10047f51
movss xmm0, dword [esi + 0xdc0]
comiss xmm0, dword [esp + 0x20]
jbe 0x10047f51
movzx eax, word [ecx + 0x58]
cmp ax, dx
je 0x10047f51
cwde
imul edx, eax, 0x70
add edx, dword [edi + 0x10]
mov dword [esp + 0x58], edx
je 0x10047f4e
mov eax, dword [ecx]
or eax, dword [edx]
test al, 0x40
jne 0x10047f4e
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 0x10047f4e
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 0x100480bb
mov ecx, dword [esp + 0x68]
test dword [ecx], 0x200
jne 0x100480bb
movzx eax, word [ecx + 0x5a]
cmp ax, dx
je 0x1004808b
maxss xmm0, dword [esp + 0x18]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x4c], xmm0
test ax, ax
jle 0x10048021
push ecx
mov dword [esp], 0x3f333333
push 0
call fcn.10007cd0
push eax
push 0
call fcn.100078b9
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.10011d32
xor eax, eax
inc eax
push eax
call fcn.10007956
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.10007cd0
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.1003cad6
mov ecx, dword [esp + 0x80]
add esp, 0x18
cmp byte [esp + 0x6c], 0
je 0x100480bb
movsx eax, word [edi + 0x1b8]
mov edi, dword [esp + 0x64]
cmp eax, edi
je 0x100480bf
push ecx
call fcn.1004c1f0
movzx ecx, byte [esi + 0xdd9]
push ecx
push eax
push edi
call fcn.1004914f
add esp, 0x10
jmp 0x100480bf
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.100120f7
movss xmm1, dword [esp + 0x70]
add esp, 0x20
subss xmm1, dword [esp + 0x38]
movss xmm0, dword [esp + 0x30]
comiss xmm0, xmm1
jbe 0x1004816a
cmp byte [esp + 0x6d], 0
je 0x1004816a
cmp dword [esi + 0x3e8c], 0
jne 0x1004816a
push 0x800
call fcn.1000952f
pop ecx
test al, al
je 0x1004816a
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
push ecx
sub eax, ecx
push eax
push str._.s
call fcn.10008589
add esp, 0xc
xor eax, eax
inc eax
push eax
call fcn.1000a19a
pop ecx
test al, al
je 0x1004818b
push 0
call fcn.1000952f
pop ecx
test al, al
je 0x1004818b
push edi
call fcn.10048fea
pop ecx
pop edi
pop esi
add esp, 0x68
ret