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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x4af008]
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 0x4323be
lea edx, [ecx - 1]
mov dword [esp + 0x1c], edx
cmp eax, 1
jne 0x4323d6
test edx, edx
jne 0x4323cb
xor eax, eax
jmp 0x4323d6
mov ecx, 2
cmp edx, 0x4b
cmovge eax, ecx
mov ecx, dword [esi]
test ecx, ecx
je 0x4323df
lea eax, [ecx - 1]
cmp eax, dword [esi + 0x10]
je 0x43242c
mov dword [esi + 0x10], eax
movzx ecx, word [ebx + 6]
movzx edx, word [ecx + ebx + 2]
add ecx, ebx
cmp eax, edx
jl 0x4323f9
lea eax, [edx - 1]
movsx eax, word [ecx + eax*2 + 4]
test eax, eax
jns 0x432404
neg eax
add eax, ecx
cmp eax, dword [esi + 0x14]
je 0x43242c
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x44], 0
test dword [edi + 0x78], 0x100000
jne 0x43242c
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 0x432442
lea ecx, [eax - 1]
cmp dword [esi + 0x18], ecx
je 0x432682
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 0x4324a5
test ebx, 0x4000
jne 0x432484
test bl, 0x40
jne 0x432491
cmp dword [esi + 0x1c], 0
jl 0x432491
mov eax, ecx
sub eax, dword [esi + 0x1c]
and eax, 0x1f
cmp al, 0xf
jg 0x432491
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 0x4324a8
mov dword [esi + 0x1c], ecx
mov ebx, dword [esp + 0x18]
movzx eax, word [ebx]
test ax, ax
jle 0x4324fa
mov eax, dword [edi + 0x44]
test byte [eax + 0x2a], 0x40
je 0x4324fa
movzx eax, word [ebx]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mov dword [esp + 0xc], eax
mulsd xmm0, qword [0x4931f0]
mov dword [esp + 0x14], 1
mov dx, ax
mulsd xmm0, qword [0x493190]
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 0x43267e
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 0x43252a
cmp eax, dword [esi + 0x2c]
je 0x43253f
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 0x432559
dec eax
cmp eax, edx
jl 0x432559
mov dword [esi + 0x4c], 0
cmp dword [esi + 0x44], edx
jl 0x432565
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 0x4325ec
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 0x43267e
cmp dword [esi + 0x28], 0
jne 0x432603
mov dword [esi + 0x48], 0
mov eax, dword [edi + 0xdc]
test eax, eax
je 0x43282f
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.0046d696
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x20], 0
jne 0x432693
cmp dword [esi + 0x4c], 0
je 0x43282f
test edx, edx
jne 0x4326a0
cmp dword [esi + 0x48], edx
je 0x43282f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x30]
cmp eax, dword [esi + 0x24]
je 0x432718
mov dword [esi + 0x24], eax
test ecx, ecx
jne 0x4326c3
mov eax, dword [esi + 0x28]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x432718
dec eax
jmp 0x432715
mov ebx, dword [edi + 0xf8]
sub ebx, dword [edi + 0xf4]
jne 0x432705
cmp dword [esi + 8], ebx
je 0x4326f9
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 0x432718
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 0x28]
jmp 0x432715
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 edx, dword [esi + 0x20]
test ecx, ecx
jle 0x432725
dec ecx
jmp 0x432798
mov ebx, dword [esi + 0x38]
test ebx, ebx
je 0x43282f
cmp dword [esi + 0xc], 0
jne 0x43282f
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 0x432768
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 0x432792
nop
inc ecx
sub edx, 0x64
cmp ecx, dword [esi + 0x48]
jl 0x43278d
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
test eax, eax
je 0x43278d
dec eax
mov dword [esi + 0x3c], eax
je 0x432841
cmp edx, 0x64
jg 0x432770
mov dword [esi + 0x34], edx
mov edx, dword [esi + 0x20]
movsx eax, word [edx + 6]
cmp ecx, eax
jl 0x4327a3
lea ecx, [eax - 1]
xor eax, eax
test ecx, ecx
cmovs ecx, eax
mov dword [esi + 0x44], ecx
movsx eax, word [edx + ecx*2 + 8]
mov dword [edi + 0xdc], eax
mov dword [edi + 0xfc], 1
mov dword [edi + 0x100], 1
test eax, eax
je 0x43282f
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.0046d696
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 0x432868
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 0x43289c
movsx eax, word [ebx + ecx*2 + 8]
cmp eax, dword [edi + 0xdc]
je 0x43289c
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 0x43282f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43292a
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.00459a20
mov ecx, dword [esp + 0x6c]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046d696
mov esp, ebp
pop ebp
ret