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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x66f3a4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ecx], 0
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x34], ecx
lea edi, [ecx + 4]
push 0xa
mov dword [ebp - 0x40], eax
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x40]
mov esi, dword [ebp - 0x34]
mov ecx, esi
shr eax, 0x1c
and al, 3
mov byte [esi + 0x6d], al
call fcn.0051e1b3
test al, al
jne 0x51dc08
mov ecx, esi
call fcn.0051e0cb
test al, al
jne 0x51dc08
xor al, al
jmp 0x51df25
cmp dword [esi], 0
je 0x51dc01
cmp byte [esi + 0x6d], 2
jne 0x51dc17
mov byte [esi + 0x6d], 1
lea edi, [esi + 4]
mov ecx, edi
call fcn.00416c41
mov ecx, eax
and ecx, 0xfffffffe
cmp byte [esi + 0x6b], 0
jne 0x51dc36
cmp byte [esi + 0x6c], 0
jne 0x51dc36
mov al, 1
jmp 0x51dc38
xor al, al
cmp byte [esi + 0xe8], 0
mov byte [ebp - 0x2d], al
jne 0x51dc5f
test al, al
jne 0x51dc5f
test ecx, ecx
je 0x51dc5f
push dword [esi + 0xa0]
mov ecx, edi
push dword [esi + 0x9c]
call fcn.004ce627
mov ecx, edi
call fcn.00416c41
cmp eax, 3
jg 0x51dd1d
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.004cdada
test al, al
je 0x51dd1d
cmp byte [ebp - 0x2d], 0
lea eax, [ebp - 0x2c]
je 0x51dc96
push dword [esi]
push eax
call fcn.0051dfc8
pop ecx
jmp 0x51dc9c
push eax
call fcn.0051e044
pop ecx
test al, al
je 0x51dd1d
movss xmm0, dword [ebp - 0x24]
addss xmm0, dword [0x5f7bcc]
push ecx
push ecx
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.004b8470
fstp dword [ebp - 0x34]
fld dword [ebp - 0x34]
fstp dword [ebp - 0x34]
movss xmm0, dword [ebp - 0x34]
xorps xmm0, xmmword [0x5f7bf0]
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [ebp - 0x18]
addss xmm0, dword [0x5f7bcc]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.004b8470
fstp dword [ebp - 0x34]
fld dword [ebp - 0x34]
mov ecx, edi
fstp dword [ebp - 0x34]
movss xmm0, dword [ebp - 0x34]
xorps xmm0, xmmword [0x5f7bf0]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x3c]
movss dword [esp], xmm0
call fcn.004cf383
mov ecx, edi
call fcn.00416c41
and eax, 0x1f
mov ecx, edi
mov eax, dword [eax*4 + 0x619470]
mov dword [esi + 0x2c], eax
call fcn.00416c41
mov byte [esi + 0x6a], al
movss xmm0, dword [edi]
mulss xmm0, dword [0x6195a4]
cvttss2si eax, xmm0
mov dword [esi + 0x60], eax
movss xmm0, dword [edi]
mulss xmm0, dword [0x61eeb8]
call fcn.00422ace
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
movss xmm0, dword [esi + 0x10]
mulss xmm0, dword [0x6195a4]
cvttss2si eax, xmm0
mov dword [esi + 0x64], eax
movss xmm0, dword [esi + 0x10]
mulss xmm0, dword [0x61eeb8]
call fcn.00422ace
mov dword [esi + 0x38], eax
mov ecx, edi
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x3c], edx
movzx eax, byte [eax + 0x37]
inc ax
mov word [esi + 0x68], ax
xor eax, eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
call fcn.00416c41
and eax, 0xfffffffe
neg eax
sbb al, al
inc al
cmp byte [esi + 0x6d], 3
mov byte [ebp - 0x3c], al
jne 0x51ddd7
mov ecx, esi
call fcn.0054eded
test al, al
jne 0x51ddd7
mov byte [esi + 0x6d], 1
cmp byte [esi + 0x6d], 1
jne 0x51ddf7
cmp byte [esi + 0x6a], 1
jbe 0x51ddf3
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
or ecx, dword [eax + 0x18]
test ecx, 0xffffc000
je 0x51ddf7
mov byte [esi + 0x6d], 0
push dword [ebp - 0x3c]
mov ecx, esi
call fcn.0054d7c2
mov dword [esi + 0x78], eax
test eax, eax
je 0x51dc01
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov al, byte [esi + 0x6d]
mov byte [ebp - 0x35], al
cmp al, 3
jae 0x51df1c
mov eax, 0x100
cmp word [esi + 0x68], ax
sbb eax, eax
neg eax
mov ecx, eax
or ecx, 2
cmp byte [esi + 0x6a], 3
cmova ecx, eax
mov eax, dword [esi]
mov edi, ecx
or edi, 4
cmp byte [ebp - 0x35], 0
mov eax, dword [eax + 0x20]
cmovbe edi, ecx
sub eax, 1
je 0x51dea1
sub eax, 1
je 0x51de9c
sub eax, 1
je 0x51de89
dec eax
sub eax, 1
je 0x51de7a
sub eax, 1
jne 0x51dc01
cmp edx, 2
je 0x51de75
cmp edx, 1
jne 0x51dc01
or edi, 0x10
jmp 0x51deb3
cmp edx, 2
je 0x51deb3
cmp edx, 1
je 0x51deb3
jmp 0x51dc01
cmp edx, 2
je 0x51de97
cmp edx, 1
jne 0x51dc01
or edi, 0x18
jmp 0x51deb3
or edi, 8
jmp 0x51deb3
mov eax, dword [ebp - 0x40]
or edi, 0x20
push dword [eax + 0x34]
call fcn.004f416c
pop ecx
mov dword [esi + 0x5c], eax
mov ecx, dword [edi*4 + 0x61edc0]
shr edi, 1
mov dword [esi + 0x7c], ecx
mov eax, dword [edi*4 + 0x61ee60]
mov dword [esi + 0x80], eax
cmp eax, 0x51ae18
jne 0x51def7
cmp byte [ebp - 0x2d], 0
je 0x51dee2
mov dword [esi + 0x74], 0x51a42d
jmp 0x51df0c
cmp byte [esi + 0x6b], 1
jne 0x51df0c
cmp byte [esi + 0x6c], 1
jne 0x51df0c
mov dword [esi + 0x74], 0x51ac3f
jmp 0x51df0c
cmp ecx, 0x51d7ce
jne 0x51df0c
cmp byte [ebp - 0x2d], 0
je 0x51df0c
mov dword [esi + 0x70], 0x51a663
cmp dword [esi + 0x70], 0
jne 0x51df1c
mov ecx, esi
call fcn.0051df37
mov dword [esi + 0x70], eax
mov ecx, esi
call fcn.00512c3c
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00422909
mov esp, ebp
pop ebp
ret 8