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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
movsd qword [esp + 0x70], xmm0
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov ecx, edx
mov esi, edx
mov edi, edx
mov dword [esp + 0x24], edx
shr ecx, 0x14
shld esi, eax, 1
and edi, 0xfffff
and ecx, 0x7ff
and esi, 0x1fffff
lea ebx, [edi + 0x100000]
test ecx, ecx
cmove ebx, esi
mov dword [esp + 4], ebx
lea ebx, [eax + eax]
cmovne ebx, eax
ucomisd xmm0, xmm0
jp 0x40dc69
and edx, 0x7ff00000
or eax, edi
je 0x40d9fe
mov edi, dword [esp + 4]
test edx, edx
jne 0x40da12
add ecx, 0xfffffbcd
test bl, 1
mov edx, 1
sete al
xor esi, esi
jmp 0x40da4e
mov edi, dword [esp + 4]
cmp edx, 0x7ff00000
je 0x40da4c
test edx, edx
jne 0x40da12
mov al, 4
jmp 0x40da4e
test bl, 1
mov esi, edi
movzx ecx, cx
sete al
xor esi, 0x100000
shld edi, ebx, 1
xor edx, edx
or esi, ebx
mov esi, 0x400000
lea ebx, [ebx + ebx]
cmove edi, esi
mov esi, 0
sete dl
cmove ebx, esi
sub ecx, edx
inc edx
add ecx, 0xfffffbcc
jmp 0x40da4e
mov al, 3
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 1
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], edx
mov word [esp + 0x90], cx
mov byte [esp + 0x92], al
add al, 0xfe
mov esi, dword [esp + 0x24]
mov ecx, 3
movzx edx, al
cmp al, 3
cmovb ecx, edx
test cl, cl
je 0x40daf7
mov edi, esi
mov eax, 0x495573
mov edx, str.Invalid
mov ebx, 0x4a9901
shr edi, 0x1f
cmp byte [esp + 0x1c], 0
cmovne edx, eax
mov eax, 1
cmovne edi, eax
test esi, esi
cmovns ebx, edx
cmp cl, 1
je 0x40db1f
movzx eax, cl
cmp eax, 2
jne 0x40db3b
mov eax, 1
mov word [esp + 0x28], 2
mov dword [esp + 0x2c], 0x495574
mov dword [esp + 0x30], 3
jmp 0x40dc40
mov word [esp + 0x28], 2
mov dword [esp + 0x2c], 0x4a9caf
mov dword [esp + 0x30], 3
mov eax, 1
xor edi, edi
mov ebx, str.Invalid
jmp 0x40dc40
mov word [esp + 0x28], 2
mov dword [esp + 0x2c], str.inf_infNaN
mov dword [esp + 0x30], 3
jmp 0x40dc40
lea esi, [esp + 0x9b]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x78]
push esi
call fcn.00406320
add esp, 4
cmp dword [esp + 0x28], 0
je 0x40db70
mov eax, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x28]
mov dword [esp + 0x10], eax
movsd qword [esp + 8], xmm0
jmp 0x40db81
lea ecx, [esp + 8]
lea edx, [esp + 0x78]
push esi
call fcn.004048a0
add esp, 4
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40dc70
mov esi, dword [esp + 8]
cmp byte [esi], 0x30
jbe 0x40dc84
movzx ecx, word [esp + 0x10]
mov eax, 1
cmp edx, 1
mov word [esp + 0x28], 2
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 1
jbe 0x40dbe9
inc esi
dec edx
mov word [esp + 0x34], 2
mov dword [esp + 0x38], 0x4af717
mov dword [esp + 0x3c], 1
mov word [esp + 0x40], 2
mov eax, 3
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edx
test cx, cx
jle 0x40dc0b
lea edx, [eax + eax*2]
dec ecx
mov word [esp + edx*4 + 0x28], 2
mov dword [esp + edx*4 + 0x2c], str.ee_0e0assertion_failed:_buf.len_____maxlen
mov dword [esp + edx*4 + 0x30], 1
jmp 0x40dc2e
lea edx, [eax + eax*2]
mov word [esp + edx*4 + 0x28], 2
mov dword [esp + edx*4 + 0x2c], 0x495571
mov dword [esp + edx*4 + 0x30], 2
mov edx, 1
sub edx, ecx
mov ecx, edx
lea edx, [eax + eax*2]
add eax, 2
mov word [esp + edx*4 + 0x34], 1
mov word [esp + edx*4 + 0x36], cx
lea ecx, [esp + 0x28]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
lea edx, [esp + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
call fcn.0040cf30
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, 2
jmp 0x40da4e
mov ecx, str.assertion_failed:__buf.is_empty__
mov edx, 0x21
push 0x495550
call fcn.0048d410
mov ecx, str.assertion_failed:_buf_0____b0
mov edx, 0x1f
push 0x495560
call fcn.0048d410
int3