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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x490
cmp dword [ebp + 8], 0
je 0x499d72
movd ebx, xmm0
movdqa xmm1, xmmword [0x59cdc0]
mov dword [esp + 4], ecx
mov dword [esp + 0x1c], edx
mov eax, ebx
mov edi, ebx
shr eax, 0x17
and edi, 0x7fffff
movzx esi, al
lea eax, [ebx + ebx]
or edi, 0x800000
and eax, 0xfffffe
test esi, esi
pand xmm1, xmm0
cmove edi, eax
ucomiss xmm1, dword [0x59cdd0]
jb 0x499b6b
mov al, 3
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 1
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], esi
mov word [esp + 0x80], dx
mov byte [esp + 0x82], al
add al, 0xfe
je 0x499bbb
mov ecx, edx
movzx edx, al
cmp al, 3
mov eax, 3
mov edi, ebx
mov esi, 1
cmovb eax, edx
shr edi, 0x1f
test ebx, ebx
mov edx, 0x59e6ee
mov ebx, 0x59e6ef
cmovs esi, edx
cmovs ebx, edx
cmp byte [esp + 0x1c], 0
mov edx, 1
cmove ebx, esi
cmovne edi, edx
cmp al, 1
je 0x499be7
movzx eax, al
cmp eax, 2
jne 0x499c07
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 4]
cmp eax, 1
jne 0x499c91
cmp byte [ebp + 0xc], 0
mov eax, 0x59e6fa
mov edx, 0x59e6f7
mov word [esp + 0x20], 2
cmovne edx, eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 3
mov edx, 1
jmp 0x499d36
ucomiss xmm0, xmm0
jp 0x499d83
movd eax, xmm1
test eax, eax
je 0x499c8a
mov eax, edi
and eax, 1
test ebx, 0x7f800000
je 0x499ce3
cmp edi, 0x800000
jne 0x499d57
movzx esi, si
mov ecx, 2
mov edi, 0x2000000
mov al, 1
add esi, 0xffffff68
mov edx, esi
xor esi, esi
jmp 0x499aa3
mov ebx, 1
lea eax, [esp + 0x20]
xor edi, edi
mov edx, 1
mov word [esp + 0x20], 2
mov dword [esp + 0x24], 0x59e6f0
mov dword [esp + 0x28], 3
jmp 0x499d32
mov word [esp + 0x20], 2
mov dword [esp + 0x24], 0x59e6f3
mov dword [esp + 0x28], 3
lea eax, [esp + 0x20]
jmp 0x499d32
test cx, cx
mov eax, 0xfffffff4
mov edx, 5
movsx esi, cx
cmovs edx, eax
mov eax, dword [ebp + 8]
imul esi, edx
cmp eax, 0x401
jb 0x499c33
cmp esi, 0x3ec0
jae 0x499d8a
shr esi, 4
add esi, 0x15
cmp esi, eax
cmovae esi, eax
cmp esi, 0x401
jae 0x499d9b
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x68]
lea eax, [esp + 0x20]
push 0x8000
push esi
push ecx
push edx
push eax
call fcn.004935d0
add esp, 0x14
cmp dword [esp + 0x20], 0
je 0x499cef
mov eax, dword [esp + 0x28]
movsd xmm0, qword [esp + 0x20]
mov dword [esp + 0x10], eax
movsd qword [esp + 8], xmm0
jmp 0x499d0f
mov al, 4
jmp 0x499aa3
dec eax
cmp byte [ebp + 0xc], 0
mov word [esp + 0x20], 2
mov dword [esp + 0x24], 0x59e691
mov dword [esp + 0x28], 2
mov word [esp + 0x2c], 0
mov edx, str.e0E0assertion_failed:_buf.len_____ndigits__buf.len_____maxlen
mov dword [esp + 0x30], eax
mov eax, 0x59e72e
mov word [esp + 0x38], 2
cmovne edx, eax
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 2
mov edx, 3
jmp 0x499d36
add esi, 0xffffff6a
mov edx, esi
xor esi, esi
jmp 0x499d66
lea eax, [esp + 8]
push 0x8000
push esi
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.00491eb0
add esp, 0x14
movzx eax, byte [ebp + 0xc]
push 6
lea ecx, [esp + 0x24]
push ecx
push eax
push dword [ebp + 8]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00493ef0
add esp, 0x1c
mov ecx, dword [esp + 4]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
lea edx, [esp + 8]
call fcn.0049b640
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, esi
add edi, edi
xor esi, esi
movzx edx, dx
add edx, 0xffffff69
xor al, 1
mov ecx, 1
jmp 0x499aa3
push 0x59e71c
push 0x1d
push 0x59e6fd
call fcn.00497b20
mov al, 2
jmp 0x499aa3
push 0x59e770
push 0x3d
push 0x59e730
call fcn.00497b20
push 0x59e780
push 0x400
push esi
call fcn.0049d4b0
nop dword [eax + eax]