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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x4b2ca0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], edx
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0xb8]
mov ecx, dword [edi + 0xd8]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + edi + 8]
test eax, eax
lea esi, [eax - 1]
cmove esi, dword [edi + 0xf0]
mov dword [esp + 0x24], esi
cmp ecx, 1
jne 0x437204
xor eax, eax
test esi, esi
cmovne eax, ecx
cmp esi, 0x4b
mov ecx, eax
mov eax, 2
cmovge ecx, eax
mov eax, dword [ebx + edi]
test eax, eax
lea edx, [eax - 1]
cmove edx, ecx
mov dword [esp + 0x10], edx
cmp edx, dword [ebx + edi + 0x10]
je 0x43727e
mov eax, dword [esp + 0x20]
mov dword [ebx + edi + 0x10], edx
movzx edx, word [eax + 6]
add edx, eax
movzx eax, word [edx + 2]
cmp dword [esp + 0x10], eax
lea ecx, [eax - 1]
cmovl ecx, dword [esp + 0x10]
movzx eax, word [edx + ecx*2 + 4]
movsx ecx, ax
mov dword [esp + 0x10], ecx
neg dword [esp + 0x10]
test ax, ax
mov eax, dword [esp + 0x10]
cmovns eax, ecx
add eax, edx
cmp eax, dword [ebx + edi + 0x14]
je 0x43727e
mov dword [ebx + edi + 0x14], eax
mov dword [ebx + edi + 0x18], 0xffffffff
mov dword [ebx + edi + 0x44], 0
test dword [edi + 0x78], 0x100000
jne 0x43727e
mov dword [ebx + edi + 0x34], 0
mov eax, dword [ebx + edi + 4]
xor edx, edx
test eax, eax
mov dword [esp + 0x1c], edx
lea ecx, [eax - 1]
mov eax, dword [sym.imp.MMFS2.dll_Ordinal_786]
cmove ecx, dword [edi + 0xec]
mov dword [esp + 0x10], eax
cmp dword [ebx + edi + 0x18], ecx
je 0x4374fc
mov edx, dword [ebx + edi + 0x14]
mov dword [ebx + edi + 0x18], ecx
mov dword [esp + 0x20], edx
movzx esi, word [edx + ecx*2]
mov dx, si
mov dword [esp + 0x14], esi
test dx, dx
jns 0x437307
test esi, 0x4000
jne 0x4372e6
test byte [esp + 0x14], 0x40
jne 0x4372f3
cmp dword [ebx + edi + 0x1c], 0
jl 0x4372f3
mov eax, ecx
sub eax, dword [ebx + edi + 0x1c]
and eax, 0x1f
cmp al, 0xf
ja 0x4372f3
sar dx, 8
mov word [esp + 0x14], dx
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
and esi, 0x3f
movzx eax, word [eax + esi*2]
mov dword [esp + 0x14], eax
mov dx, ax
jmp 0x43730b
mov dword [ebx + edi + 0x1c], ecx
mov esi, dword [esp + 0x20]
movzx eax, word [esi]
test ax, ax
jle 0x43735e
mov eax, dword [edi + 0x44]
test byte [eax + 0x2a], 0x40
je 0x43735e
movzx eax, word [esi]
movd xmm0, ecx
mov dx, ax
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 1
mulsd xmm0, qword [0x4a3878]
mulsd xmm0, qword [0x4a3818]
cvtpd2ps xmm0, xmm0
movss dword [edi + 0xe8], xmm0
mov dword [ebx + edi + 0x20], 0
movsx ecx, dx
add ecx, esi
cmp dword [ebx + edi + 0x20], ecx
je 0x4374f4
mov dword [ebx + edi + 0x20], ecx
movsx eax, word [ecx + 2]
mov dword [ebx + edi + 0x3c], eax
movsx eax, word [ecx + 4]
mov dword [ebx + edi + 0x40], eax
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
cmp edx, dword [ebx + edi + 0x28]
jne 0x437394
cmp eax, dword [ebx + edi + 0x2c]
je 0x4373ae
mov dword [ebx + edi + 0x2c], eax
sub eax, edx
mov dword [ebx + edi + 0x28], edx
mov dword [ebx + edi + 0x30], eax
mov dword [ebx + edi + 0x38], edx
mov dword [ebx + edi + 0x24], 0xffffffff
movsx eax, word [ecx + 6]
mov edx, dword [ebx + edi + 0x4c]
mov dword [ebx + edi + 0x48], eax
test edx, edx
je 0x4373ca
cmp edx, eax
jle 0x4373ca
mov dword [ebx + edi + 0x4c], 0
mov edx, dword [ebx + edi + 0x44]
cmp edx, eax
jl 0x4373dc
mov dword [ebx + edi + 0x44], 0
xor edx, edx
cmp dword [ebx + edi + 0xc], 0
movzx ecx, word [ecx + edx*2 + 8]
mov esi, dword [esp + 0x18]
jne 0x437463
movss xmm0, dword [edi + 0xe4]
lea eax, [esp + 0x2c]
push eax
sub esp, 0xc
mov dword [edi + 0xdc], ecx
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 ecx
push dword [esi + 8]
call dword [esp + 0x28]
movsx eax, word [esp + 0x38]
mov dword [edi + 0x60], eax
movsx eax, word [esp + 0x3a]
mov dword [edi + 0x64], eax
movsx eax, word [esp + 0x40]
mov dword [edi + 0x58], eax
movsx eax, word [esp + 0x42]
mov dword [edi + 0x5c], eax
mov dword [edi + 0xfc], 1
mov dword [edi + 0x100], 1
mov eax, dword [ebx + edi + 0x48]
cmp eax, 1
jne 0x4374f4
cmp dword [ebx + edi + 0x28], 0
jne 0x43747b
mov dword [ebx + edi + 0x48], 0
mov eax, dword [edi + 0xdc]
test eax, eax
je 0x4376d5
movss xmm0, dword [edi + 0xe4]
lea ecx, [esp + 0x2c]
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 [esi + 8]
call dword [esp + 0x28]
movsx eax, word [esp + 0x38]
mov dword [edi + 0x60], eax
movsx eax, word [esp + 0x3a]
mov dword [edi + 0x64], eax
movsx eax, word [esp + 0x40]
mov dword [edi + 0x58], eax
movsx eax, word [esp + 0x42]
mov dword [edi + 0x5c], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
cmp dword [esp + 0x28], 0
jne 0x43750e
cmp dword [ebx + edi + 0x4c], 0
je 0x4376d5
test edx, edx
jne 0x43751c
cmp dword [ebx + edi + 0x48], edx
je 0x4376d5
mov eax, dword [ebx + edi + 0x30]
cmp esi, dword [ebx + edi + 0x24]
je 0x4375aa
mov dword [ebx + edi + 0x24], esi
test eax, eax
jne 0x437545
mov eax, dword [ebx + edi + 0x28]
mov dword [ebx + edi + 0x38], eax
mov eax, dword [ebx + edi + 8]
test eax, eax
je 0x4375aa
dec eax
jmp 0x4375a6
mov ecx, dword [edi + 0xf8]
sub ecx, dword [edi + 0xf4]
jne 0x437591
cmp dword [ebx + edi + 8], ecx
je 0x437580
mov ecx, dword [ebx + edi + 0x2c]
imul esi, eax
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, dword [ebx + edi + 0x28]
cmp eax, ecx
cmovle ecx, eax
mov dword [ebx + edi + 0x38], ecx
jmp 0x4375aa
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [ebx + edi + 0x28]
mov dword [ebx + edi + 0x38], ecx
jmp 0x4375aa
imul eax, esi
cdq
idiv ecx
mov ecx, dword [ebx + edi + 0x28]
add ecx, eax
mov eax, dword [ebx + edi + 0x2c]
cmp ecx, eax
cmovle eax, ecx
mov dword [ebx + edi + 0x38], eax
mov edx, dword [ebx + edi + 0x4c]
mov esi, dword [ebx + edi + 0x20]
test edx, edx
jle 0x4375bc
dec edx
jmp 0x43763e
mov esi, dword [ebx + edi + 0x38]
test esi, esi
je 0x4376d5
cmp dword [ebx + edi + 0xc], 0
jne 0x4376d5
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + edi + 0x34]
mov edx, dword [ebx + edi + 0x44]
mov eax, dword [eax + 0x1c]
test dword [eax + 0xc], 0x8000
je 0x437603
mov eax, dword [esp + 0x18]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [eax + 0x440]
cvttsd2si esi, xmm0
add ecx, esi
cmp ecx, 0x64
jle 0x437636
mov esi, dword [ebx + edi + 0x48]
nop
inc edx
sub ecx, 0x64
cmp edx, esi
jl 0x437631
mov eax, dword [ebx + edi + 0x3c]
mov edx, dword [ebx + edi + 0x40]
test eax, eax
je 0x437631
add eax, 0xffffffff
mov dword [ebx + edi + 0x3c], eax
je 0x4376e7
cmp ecx, 0x64
jg 0x437610
mov esi, dword [ebx + edi + 0x20]
mov dword [ebx + edi + 0x34], ecx
movsx eax, word [esi + 6]
cmp edx, eax
lea ecx, [eax - 1]
cmovl ecx, edx
xor eax, eax
test ecx, ecx
cmovns eax, ecx
mov dword [ebx + edi + 0x44], eax
movzx eax, word [esi + eax*2 + 8]
mov dword [edi + 0xdc], eax
mov dword [edi + 0xfc], 1
mov dword [edi + 0x100], 1
test eax, eax
je 0x4376d5
movss xmm0, dword [edi + 0xe4]
lea ecx, [esp + 0x4c]
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 + 0x2c]
push dword [eax + 8]
call dword [esp + 0x28]
movsx eax, word [esp + 0x58]
mov dword [edi + 0x60], eax
movsx eax, word [esp + 0x5a]
mov dword [edi + 0x64], eax
movsx eax, word [esp + 0x60]
mov dword [edi + 0x58], eax
movsx eax, word [esp + 0x62]
mov dword [edi + 0x5c], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret
cmp dword [ebx + edi], 0
lea edx, [esi - 1]
mov dword [ebx + edi + 0x44], edx
mov dword [ebx + edi + 0x48], 0
je 0x437713
mov dword [ebx + edi], 0
mov dword [ebx + edi + 4], 0
mov dword [ebx + edi + 8], 0
mov esi, dword [ebx + edi + 0x20]
movsx eax, word [esi + 6]
cmp edx, eax
jge 0x437746
movzx eax, word [esi + edx*2 + 8]
cmp eax, dword [edi + 0xdc]
je 0x437746
mov dword [edi + 0xdc], eax
mov dword [edi + 0xfc], 1
mov dword [edi + 0x100], 1
mov edx, dword [esp + 0x18]
mov eax, 0x200
mov dword [ebx + edi + 0x34], ecx
test word [edx + 0x28], ax
jne 0x4376d5
cmp dword [esp + 0x1c], 0
je 0x4377da
movss xmm0, dword [edi + 0xe4]
lea eax, [esp + 0x2c]
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 [edx + 8]
call dword [esp + 0x28]
movsx eax, word [esp + 0x38]
mov edx, dword [esp + 0x18]
mov dword [edi + 0x60], eax
movsx eax, word [esp + 0x3a]
mov dword [edi + 0x64], eax
movsx eax, word [esp + 0x40]
mov dword [edi + 0x58], eax
movsx eax, word [esp + 0x42]
mov dword [edi + 0x5c], eax
mov dword [edi + 0xfc], 1
mov dword [edi + 0x100], 1
movzx ecx, word [edi + 0x18]
mov esi, dword [edx + 0xec]
or ecx, 0xfffe0000
mov eax, dword [ebx + edi + 0x10]
push ecx
push edi
mov dword [edx + 0xec], eax
call fcn.00460840
mov eax, dword [esp + 0x20]
add esp, 8
mov ecx, dword [esp + 0x6c]
pop edi
mov dword [eax + 0xec], esi
pop esi
pop ebx
xor ecx, esp
call fcn.00476fd3
mov esp, ebp
pop ebp
ret