Function at 0x432320
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 0x43236e
lea edx, [ecx - 1]
mov dword [esp + 0x1c], edx
cmp eax, 1
jne 0x432386
test edx, edx
jne 0x43237b
xor eax, eax
jmp 0x432386
mov ecx, 2
cmp edx, 0x4b
cmovge eax, ecx
mov ecx, dword [esi]
test ecx, ecx
je 0x43238f
lea eax, [ecx - 1]
cmp eax, dword [esi + 0x10]
je 0x4323dc
mov dword [esi + 0x10], eax
movzx ecx, word [ebx + 6]
movzx edx, word [ecx + ebx + 2]
add ecx, ebx
cmp eax, edx
jl 0x4323a9
lea eax, [edx - 1]
movsx eax, word [ecx + eax*2 + 4]
test eax, eax
jns 0x4323b4
neg eax
add eax, ecx
cmp eax, dword [esi + 0x14]
je 0x4323dc
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x44], 0
test dword [edi + 0x78], 0x100000
jne 0x4323dc
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 0x4323f2
lea ecx, [eax - 1]
cmp dword [esi + 0x18], ecx
je 0x432632
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 0x432455
test ebx, 0x4000
jne 0x432434
test bl, 0x40
jne 0x432441
cmp dword [esi + 0x1c], 0
jl 0x432441
mov eax, ecx
sub eax, dword [esi + 0x1c]
and eax, 0x1f
cmp al, 0xf
jg 0x432441
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 0x432458
mov dword [esi + 0x1c], ecx
mov ebx, dword [esp + 0x18]
movzx eax, word [ebx]
test ax, ax
jle 0x4324aa
mov eax, dword [edi + 0x44]
test byte [eax + 0x2a], 0x40
je 0x4324aa
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 0x43262e
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 0x4324da
cmp eax, dword [esi + 0x2c]
je 0x4324ef
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 0x432509
dec eax
cmp eax, edx
jl 0x432509
mov dword [esi + 0x4c], 0
cmp dword [esi + 0x44], edx
jl 0x432515
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 0x43259c
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 0x43262e
cmp dword [esi + 0x28], 0
jne 0x4325b3
mov dword [esi + 0x48], 0
mov eax, dword [edi + 0xdc]
test eax, eax
je 0x4327cd
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.0046d526
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x20], 0
jne 0x432643
cmp dword [esi + 0x4c], 0
je 0x4327cd
test edx, edx
jne 0x432650
cmp dword [esi + 0x48], edx
je 0x4327cd
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x30]
cmp eax, dword [esi + 0x24]
je 0x4326c8
mov dword [esi + 0x24], eax
test ecx, ecx
jne 0x432673
mov eax, dword [esi + 0x28]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x4326c8
dec eax
jmp 0x4326c5
mov ebx, dword [edi + 0xf8]
sub ebx, dword [edi + 0xf4]
jne 0x4326b5
cmp dword [esi + 8], ebx
je 0x4326a9
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 0x4326c8
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 0x28]
jmp 0x4326c5
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 0x4326d5
dec ecx
jmp 0x432748
mov ebx, dword [esi + 0x38]
test ebx, ebx
je 0x4327cd
cmp dword [esi + 0xc], 0
jne 0x4327cd
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 0x432718
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 0x432742
nop
inc ecx
sub edx, 0x64
cmp ecx, dword [esi + 0x48]
jl 0x43273d
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
test eax, eax
je 0x43273d
dec eax
mov dword [esi + 0x3c], eax
je 0x4327df
cmp edx, 0x64
jg 0x432720
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 0x4327cd
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.0046d526
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 0x432806
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 0x43283a
movsx eax, word [ebx + ecx*2 + 8]
cmp eax, dword [edi + 0xdc]
je 0x43283a
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 0x4327cd
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4328c8
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.00459860
mov ecx, dword [esp + 0x6c]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046d526
mov esp, ebp
pop ebp
ret