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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x4ae008]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edx
mov esi, dword [edi + 0xb8]
mov eax, dword [edi + 8]
mov ecx, dword [esi + edi + 8]
mov edx, dword [edi + 0xf0]
mov ebx, dword [edi + 0x44]
add esi, edi
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xd8]
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x431fae
lea edx, [ecx - 1]
mov dword [esp + 0x1c], edx
cmp eax, 1
jne 0x431fc6
test edx, edx
jne 0x431fbb
xor eax, eax
jmp 0x431fc6
mov ecx, 2
cmp edx, 0x4b
cmovge eax, ecx
mov ecx, dword [esi]
test ecx, ecx
je 0x431fcf
lea eax, [ecx - 1]
cmp eax, dword [esi + 0x10]
je 0x43201c
mov dword [esi + 0x10], eax
movzx ecx, word [ebx + 6]
movzx edx, word [ecx + ebx + 2]
add ecx, ebx
cmp eax, edx
jl 0x431fe9
lea eax, [edx - 1]
movsx eax, word [ecx + eax*2 + 4]
test eax, eax
jns 0x431ff4
neg eax
add eax, ecx
cmp eax, dword [esi + 0x14]
je 0x43201c
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x44], 0
test dword [edi + 0x78], 0x100000
jne 0x43201c
mov dword [esi + 0x34], 0
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0xec]
xor edx, edx
mov dword [esp + 0x14], edx
test eax, eax
je 0x432032
lea ecx, [eax - 1]
cmp dword [esi + 0x18], ecx
je 0x432272
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
movzx ebx, word [edx + ecx*2]
mov dword [esp + 0x18], edx
mov dx, bx
mov dword [esp + 0xc], ebx
test dx, dx
jns 0x432095
test ebx, 0x4000
jne 0x432074
test bl, 0x40
jne 0x432081
cmp dword [esi + 0x1c], 0
jl 0x432081
mov eax, ecx
sub eax, dword [esi + 0x1c]
and eax, 0x1f
cmp al, 0xf
jg 0x432081
sar dx, 8
mov word [esp + 0xc], dx
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
and ebx, 0x3f
movzx eax, word [eax + ebx*2]
mov dword [esp + 0xc], eax
mov dx, ax
jmp 0x432098
mov dword [esi + 0x1c], ecx
mov ebx, dword [esp + 0x18]
movzx eax, word [ebx]
test ax, ax
jle 0x4320ea
mov eax, dword [edi + 0x44]
test byte [eax + 0x2a], 0x40
je 0x4320ea
movzx eax, word [ebx]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mov dword [esp + 0xc], eax
mulsd xmm0, qword [0x4921f0]
mov dword [esp + 0x14], 1
mov dx, ax
mulsd xmm0, qword [0x492190]
cvtpd2ps xmm0, xmm0
movss dword [edi + 0xe8], xmm0
mov dword [esi + 0x20], 0
movsx ecx, dx
add ecx, ebx
cmp dword [esi + 0x20], ecx
je 0x43226e
mov dword [esi + 0x20], ecx
movsx eax, word [ecx + 2]
mov dword [esi + 0x3c], eax
movsx eax, word [ecx + 4]
mov dword [esi + 0x40], eax
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
cmp edx, dword [esi + 0x28]
jne 0x43211a
cmp eax, dword [esi + 0x2c]
je 0x43212f
mov dword [esi + 0x2c], eax
sub eax, edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], edx
mov dword [esi + 0x24], 0xffffffff
movsx edx, word [ecx + 6]
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x48], edx
test eax, eax
je 0x432149
dec eax
cmp eax, edx
jl 0x432149
mov dword [esi + 0x4c], 0
cmp dword [esi + 0x44], edx
jl 0x432155
mov dword [esi + 0x44], 0
cmp dword [esi + 0xc], 0
mov eax, dword [esi + 0x44]
mov ebx, dword [esp + 0x10]
movsx eax, word [ecx + eax*2 + 8]
jne 0x4321dc
movss xmm0, dword [edi + 0xe4]
lea ecx, [esp + 0x24]
push ecx
sub esp, 0xc
mov dword [edi + 0xdc], eax
movss dword [esp + 8], xmm0
movss xmm0, dword [edi + 0xe0]
movss dword [esp + 4], xmm0
movss xmm0, dword [edi + 0xe8]
movss dword [esp], xmm0
push eax
push dword [ebx + 8]
call dword [sym.imp.MMFS2.dll_Ordinal_786]
movsx eax, word [esp + 0x30]
mov dword [edi + 0x60], eax
movsx eax, word [esp + 0x32]
mov dword [edi + 0x64], eax
movsx eax, word [esp + 0x38]
mov dword [edi + 0x58], eax
movsx eax, word [esp + 0x3a]
mov dword [edi + 0x5c], eax
mov dword [edi + 0xfc], 1
mov dword [edi + 0x100], 1
cmp dword [esi + 0x48], 1
jne 0x43226e
cmp dword [esi + 0x28], 0
jne 0x4321f3
mov dword [esi + 0x48], 0
mov eax, dword [edi + 0xdc]
test eax, eax
je 0x43240d
movss xmm0, dword [edi + 0xe4]
lea ecx, [esp + 0x24]
push ecx
sub esp, 0xc
movss dword [esp + 8], xmm0
movss xmm0, dword [edi + 0xe0]
movss dword [esp + 4], xmm0
movss xmm0, dword [edi + 0xe8]
movss dword [esp], xmm0
push eax
push dword [ebx + 8]
call dword [sym.imp.MMFS2.dll_Ordinal_786]
movsx eax, word [esp + 0x30]
mov dword [edi + 0x60], eax
movsx eax, word [esp + 0x32]
mov dword [edi + 0x64], eax
movsx eax, word [esp + 0x38]
mov dword [edi + 0x58], eax
movsx eax, word [esp + 0x3a]
mov dword [edi + 0x5c], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0046d146
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x20], 0
jne 0x432283
cmp dword [esi + 0x4c], 0
je 0x43240d
test edx, edx
jne 0x432290
cmp dword [esi + 0x48], edx
je 0x43240d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x30]
cmp eax, dword [esi + 0x24]
je 0x432308
mov dword [esi + 0x24], eax
test ecx, ecx
jne 0x4322b3
mov eax, dword [esi + 0x28]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x432308
dec eax
jmp 0x432305
mov ebx, dword [edi + 0xf8]
sub ebx, dword [edi + 0xf4]
jne 0x4322f5
cmp dword [esi + 8], ebx
je 0x4322e9
imul ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, dword [esi + 0x28]
cmp ecx, dword [esi + 0x2c]
cmovg ecx, dword [esi + 0x2c]
mov dword [esi + 0x38], ecx
jmp 0x432308
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 0x28]
jmp 0x432305
imul eax, ecx
cdq
idiv ebx
add eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x2c]
cmovg eax, dword [esi + 0x2c]
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x20]
test ecx, ecx
jle 0x432315
dec ecx
jmp 0x432388
mov ebx, dword [esi + 0x38]
test ebx, ebx
je 0x43240d
cmp dword [esi + 0xc], 0
jne 0x43240d
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x34]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esi + 0x44]
test dword [eax + 0xc], 0x8000
je 0x432358
mov eax, dword [esp + 0x10]
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [eax + 0x440]
cvttsd2si ebx, xmm0
add edx, ebx
cmp edx, 0x64
jle 0x432382
nop
inc ecx
sub edx, 0x64
cmp ecx, dword [esi + 0x48]
jl 0x43237d
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
test eax, eax
je 0x43237d
dec eax
mov dword [esi + 0x3c], eax
je 0x43241f
cmp edx, 0x64
jg 0x432360
mov eax, dword [esi + 0x20]
mov dword [esi + 0x34], edx
mov dword [esi + 0x44], ecx
movsx eax, word [eax + ecx*2 + 8]
mov dword [edi + 0xdc], eax
mov dword [edi + 0xfc], 1
mov dword [edi + 0x100], 1
test eax, eax
je 0x43240d
movss xmm0, dword [edi + 0xe4]
lea ecx, [esp + 0x44]
push ecx
sub esp, 0xc
movss dword [esp + 8], xmm0
movss xmm0, dword [edi + 0xe0]
movss dword [esp + 4], xmm0
movss xmm0, dword [edi + 0xe8]
movss dword [esp], xmm0
push eax
mov eax, dword [esp + 0x24]
push dword [eax + 8]
call dword [sym.imp.MMFS2.dll_Ordinal_786]
movsx eax, word [esp + 0x50]
mov dword [edi + 0x60], eax
movsx eax, word [esp + 0x52]
mov dword [edi + 0x64], eax
movsx eax, word [esp + 0x58]
mov dword [edi + 0x58], eax
movsx eax, word [esp + 0x5a]
mov dword [edi + 0x5c], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0046d146
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x48]
dec eax
cmp dword [esi], 0
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 0
je 0x432446
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov ebx, dword [esi + 0x20]
mov ecx, eax
movsx eax, word [ebx + 6]
cmp ecx, eax
jge 0x43247a
movsx eax, word [ebx + ecx*2 + 8]
cmp eax, dword [edi + 0xdc]
je 0x43247a
mov dword [edi + 0xdc], eax
mov dword [edi + 0xfc], 1
mov dword [edi + 0x100], 1
mov ebx, dword [esp + 0x10]
mov eax, 0x200
mov dword [esi + 0x34], edx
test word [ebx + 0x28], ax
jne 0x43240d
mov eax, dword [esp + 0x14]
test eax, eax
je 0x432508
movss xmm0, dword [edi + 0xe4]
lea eax, [esp + 0x24]
push eax
sub esp, 0xc
movss dword [esp + 8], xmm0
movss xmm0, dword [edi + 0xe0]
movss dword [esp + 4], xmm0
movss xmm0, dword [edi + 0xe8]
movss dword [esp], xmm0
push dword [edi + 0xdc]
push dword [ebx + 8]
call dword [sym.imp.MMFS2.dll_Ordinal_786]
movsx eax, word [esp + 0x30]
mov dword [edi + 0x60], eax
movsx eax, word [esp + 0x32]
mov dword [edi + 0x64], eax
movsx eax, word [esp + 0x38]
mov dword [edi + 0x58], eax
movsx eax, word [esp + 0x3a]
mov dword [edi + 0x5c], eax
mov dword [edi + 0xfc], 1
mov dword [edi + 0x100], 1
movzx ecx, word [edi + 0x18]
mov eax, dword [esi + 0x10]
or ecx, 0xfffe0000
push ecx
push edi
mov dword [ebx + 0xec], eax
call fcn.004594a0
mov ecx, dword [esp + 0x6c]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046d146
mov esp, ebp
pop ebp
ret