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

Disassembly:
push 8
mov eax, 0x545019
call fcn.004f1313
push ebx
sub esp, 0x120
push esi
mov esi, dword [ebx + 0x10]
mov ecx, esi
push edi
call fcn.004d3b51
mov edi, dword [ebx + 0x14]
mov edx, dword [ebx + 0x40]
cmp dword [ebx + 0x3c], 0
movd xmm0, dword [ebx + 0x18]
mov ecx, dword [edi + 0x38]
sete byte [ebp - 0x1c]
push esi
cvtdq2pd xmm0, xmm0
movsd xmm1, qword [ecx + edx*8]
xor ecx, ecx
test al, al
movaps xmm2, xmm0
mov eax, dword [ebx + 0xc]
subsd xmm2, xmm1
setne cl
subsd xmm1, xmm0
lea edi, [eax + 0x244]
add eax, 0x10
push eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x28], edi
movsd qword [ebp - 0x48], xmm2
push dword [eax + 0x2ac]
push ecx
push ecx
push ecx
movsd qword [esp], xmm1
lea ecx, [ebp - 0xac]
push dword [ebx + 0x48]
push dword [ebx + 0x44]
push edx
push edi
mov edi, dword [ebx + 0x14]
push edi
call fcn.004d9a83
and dword [ebp - 4], 0
mov ecx, esi
call fcn.004d3e02
test al, al
je 0x4df03a
cmp byte [ebx + 0x50], 0
mov byte [ebp - 0x11], 1
je 0x4df03e
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0xac]
call fcn.004dac36
test al, al
je 0x4df208
mov esi, dword [ebx + 0x48]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xac]
call fcn.004dac4a
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
add eax, ecx
push eax
push ecx
mov ecx, edi
lea edx, [eax - 1]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0xe0]
add edx, esi
push eax
mov dword [ebp - 0x18], edx
call fcn.004db7e1
movsd xmm2, qword [ebp - 0x48]
xorps xmm3, xmm3
movsd xmm1, qword [ebp - 0x48]
addsd xmm2, qword [eax + 8]
addsd xmm1, qword [eax]
movaps xmm0, xmm2
movsd qword [ebp - 0x60], xmm2
subsd xmm0, xmm1
movsd qword [ebp - 0x68], xmm1
comisd xmm3, xmm0
movsd xmm0, qword [ebx + 0x2c]
jae 0x4df360
comisd xmm0, xmm1
jbe 0x4df360
comisd xmm2, xmmword [ebx + 0x1c]
jbe 0x4df360
sub esp, 0x10
lea esi, [ebp - 0x68]
mov edi, esp
lea eax, [ebp - 0xd0]
sub esp, 0x20
movsd dword es:[edi], dword [esi]
push 8
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebx + 0x1c]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004d5d1f
mov esi, dword [ebx + 0x10]
add esp, 0x34
cmp byte [esi + 0x78], 0
je 0x4df111
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
call fcn.004bc469
mov edi, eax
jmp 0x4df113
xor edi, edi
mov eax, dword [esi + 0xf0]
shr eax, 5
test al, 1
je 0x4df136
cmp edi, 1
jne 0x4df136
push esi
push dword [ebx + 0xc]
push dword [ebp - 0x18]
call fcn.004de950
add esp, 0xc
mov edi, eax
mov ecx, dword [ebx + 0xc]
add ecx, 0x294
cmp dword [ecx], 0xffffffff
je 0x4df15a
cmp dword [ecx + 4], 0xffffffff
je 0x4df15a
push dword [ebp - 0x18]
call fcn.004da51f
mov byte [ebp - 0x2c], 1
test al, al
jne 0x4df15e
mov byte [ebp - 0x2c], 0
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebp - 0x20]
push ecx
mov eax, dword [edx + 0x34]
movzx eax, byte [eax + ecx]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push edi
push dword [ebx + 0x50]
push dword [ebx + 0x4c]
push edx
push esi
push dword [ebx + 0xc]
push eax
call fcn.004e6f5c
add esp, 0x28
cmp dword [ebp - 0x30], 0
je 0x4df226
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
cmp byte [edx + eax], 9
jne 0x4df1ce
cmp byte [ebp - 0x11], 0
je 0x4df1d2
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004d3ddd
test al, al
je 0x4df1d2
push 0x3d
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.004d3336
mov eax, dword [eax]
or eax, 0xff000000
mov dword [ebp - 0x24], eax
jmp 0x4df1d2
mov byte [ebp - 0x1c], 0
push dword [ebp - 0x24]
mov edx, dword [ebx + 8]
lea esi, [ebp - 0xd0]
sub esp, 0x20
mov eax, dword [edx]
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
call dword [eax + 0x48]
mov edi, dword [ebx + 0x14]
mov esi, dword [ebx + 0x48]
lea ecx, [ebp - 0xac]
call fcn.004dac36
test al, al
jne 0x4df054
lea ecx, [ebp - 0xac]
call fcn.004d9f74
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push dword [ebp - 0x24]
mov edx, dword [ebx + 8]
lea esi, [ebp - 0xd0]
sub esp, 0x20
mov eax, dword [edx]
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
call dword [eax + 0x48]
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + 0xdc], 0
je 0x4df1ef
mov eax, dword [ebp - 0x20]
xor esi, esi
mov edx, dword [ebp - 0x38]
sub eax, edx
mov dword [ebp - 0x18], esi
js 0x4df1ef
mov edi, dword [ebx + 0x14]
mov eax, dword [edi + 0x30]
add eax, esi
cmp byte [eax + edx], 0x20
jne 0x4df346
cmp byte [ebp - 0x11], 0
je 0x4df34a
push dword [ebp - 0x1c]
call fcn.004d3ddd
test al, al
je 0x4df33e
mov eax, dword [ebp - 0x38]
mov ecx, edi
add eax, esi
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004db806
movsd xmm0, qword [ebp - 0x48]
lea esi, [ebp - 0x78]
sub esp, 0x10
mov edi, esp
sub esp, 0x20
addsd xmm0, qword [eax]
push 8
pop ecx
movsd qword [ebp - 0x78], xmm0
movsd xmm0, qword [ebp - 0x48]
addsd xmm0, qword [eax + 8]
lea eax, [ebp - 0x110]
movsd qword [ebp - 0x70], xmm0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebx + 0x1c]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004d5d1f
mov eax, dword [ebx + 8]
add esp, 0x34
mov ecx, dword [ebx + 0x10]
mov eax, dword [eax]
push 0x3d
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
call fcn.004d3336
push 8
pop ecx
lea esi, [ebp - 0x110]
lea edi, [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
lea esi, [ebp - 0x130]
or ecx, 0xff000000
push ecx
mov eax, esp
sub esp, 0x20
mov dword [eax], ecx
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
call dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebx + 0x14]
jmp 0x4df34a
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x10]
jmp 0x4df34a
mov byte [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
inc esi
sub eax, edx
mov dword [ebp - 0x18], esi
cmp esi, eax
jle 0x4df261
jmp 0x4df1f2
comisd xmm1, xmm0
ja 0x4df208
jmp 0x4df1f5