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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x498
cmp dword [ebp + 8], 0
mov dword [esp + 0x64], edx
je 0x495174
mov dword [esp], ecx
movsd qword [esp + 0x68], xmm0
xor esi, esi
xor eax, eax
mov edi, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov ecx, edi
mov ebx, edi
mov dword [esp + 4], edi
shr ecx, 0x14
shld ebx, edx, 1
and ecx, 0x7ff
and ebx, 0x1fffff
add esi, 0xffffffff
adc eax, 0xfffff
and eax, edi
mov esi, eax
or esi, 0x100000
test ecx, ecx
cmove esi, ebx
lea ebx, [edx + edx]
cmovne ebx, edx
ucomisd xmm0, xmm0
jp 0x49518a
and edi, 0x7ff00000
or edx, eax
je 0x494dfb
test edi, edi
je 0x494e0b
test bl, 1
mov edi, 0x100000
movzx ecx, cx
sete al
xor edi, esi
shld esi, ebx, 1
xor edx, edx
or edi, ebx
mov edi, 0x400000
lea ebx, [ebx + ebx]
cmove esi, edi
mov edi, 0
sete dl
cmove ebx, edi
sub ecx, edx
inc edx
add ecx, 0xfffffbcc
jmp 0x494e22
cmp edi, 0x7ff00000
je 0x494e20
test edi, edi
jne 0x494dbe
mov al, 4
jmp 0x494e22
add ecx, 0xfffffbcd
test bl, 1
mov edx, 1
sete al
xor edi, edi
jmp 0x494e22
mov al, 3
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 1
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edi
mov word [esp + 0x88], cx
mov byte [esp + 0x8a], al
add al, 0xfe
mov esi, dword [esp + 4]
movzx edx, al
cmp al, 3
mov eax, 3
cmovb eax, edx
test al, al
je 0x494f0f
mov ebx, esi
mov edx, 0x4d3c57
mov edi, 0x4d3c58
shr ebx, 0x1f
cmp byte [esp + 0x64], 0
cmovne edi, edx
mov edx, 1
cmovne ebx, edx
test esi, esi
mov esi, 0x4d3c56
cmovns esi, edi
cmp al, 1
je 0x494f37
movzx eax, al
cmp eax, 2
jne 0x494f53
mov eax, dword [ebp + 8]
mov ecx, dword [esp]
cmp eax, 1
jbe 0x49509a
dec eax
cmp byte [ebp + 0xc], 0
mov word [esp + 0x1c], 2
mov dword [esp + 0x20], 0x4d3bf8
mov dword [esp + 0x24], 2
mov word [esp + 0x28], 0
mov edx, 0x4d3cf6
mov dword [esp + 0x2c], eax
mov eax, str.E0e0assertion_failed:_buf.len_____maxlen
mov word [esp + 0x34], 2
cmovne edx, eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 2
mov edx, 3
jmp 0x49514f
mov edx, 1
xor ebx, ebx
mov esi, 0x4d3c58
mov word [esp + 0x1c], 2
mov dword [esp + 0x20], 0x4d3c5c
mov dword [esp + 0x24], 3
jmp 0x49514c
mov word [esp + 0x1c], 2
mov dword [esp + 0x20], 0x4d3c59
mov dword [esp + 0x24], 3
jmp 0x49514c
test cx, cx
mov eax, 0xfffffff4
mov edx, 5
movsx edi, cx
cmovs edx, eax
mov eax, dword [ebp + 8]
imul edi, edx
cmp eax, 0x401
jb 0x494f7f
cmp edi, 0x3ebf
ja 0x495191
shr edi, 4
add edi, 0x15
cmp edi, eax
cmovae edi, eax
cmp edi, 0x401
jae 0x4951a7
lea ecx, [esp + 0x94]
lea edx, [esp + 0x70]
lea eax, [esp + 0x1c]
push 0x8000
push edi
push ecx
push edx
push eax
call sym.core::num::flt2dec::strategy::grisu::format_exact_opt::h7085164e18d465a0
add esp, 0x14
cmp dword [esp + 0x1c], 0
je 0x4950c8
mov eax, dword [esp + 0x24]
movsd xmm0, qword [esp + 0x1c]
mov dword [esp + 0x10], eax
movsd qword [esp + 8], xmm0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4950f4
mov edi, dword [esp + 8]
cmp byte [edi], 0x31
jb 0x4951bc
movzx eax, word [esp + 0x10]
mov edx, ecx
mov word [esp + 0x1c], 2
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
or edx, eax
cmp edx, 2
mov edx, 1
jb 0x495060
inc edi
lea edx, [ecx - 1]
mov word [esp + 0x28], 2
mov dword [esp + 0x2c], 0x4d3bfa
mov dword [esp + 0x30], 1
mov word [esp + 0x34], 2
cmp ecx, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edx
mov edx, 3
jae 0x495060
sub eax, ecx
mov word [esp + 0x40], 0
mov edx, 4
mov dword [esp + 0x44], eax
mov eax, dword [esp + 4]
test ax, ax
jle 0x49510a
dec eax
cmp byte [ebp + 0xc], 0
mov ecx, 0x4d3c54
mov edi, 0x4d3c55
cmovne edi, ecx
lea ecx, [edx + edx*2]
mov word [esp + ecx*4 + 0x1c], 2
mov dword [esp + ecx*4 + 0x20], edi
mov dword [esp + ecx*4 + 0x24], 1
jmp 0x49513a
cmp byte [ebp + 0xc], 0
mov eax, 0x4d3c5f
mov edx, 0x4d3c62
mov word [esp + 0x1c], 2
cmovne edx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 3
mov edx, 1
jmp 0x49514f
lea eax, [esp + 8]
push 0x8000
push edi
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x7c]
push ecx
push eax
call sym.core::num::flt2dec::strategy::dragon::format_exact::h392d3fbbec9085a5
add esp, 0x14
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x494fe1
push 0x4d3bfc
push 0x21
push str.assertion_failed:__buf.is_empty__called__Option::unwrap____on_a__None__value
call sym.core::panicking::panic::h77c9b6f606fdbf34
add esp, 0xc
ud2
cmp byte [ebp + 0xc], 0
mov ecx, str.E_e_Ee_0infNaN0E00e0assertion_failed:_ndigits___0
mov edi, 0x4d3c52
cmovne edi, ecx
lea ecx, [edx + edx*2]
mov word [esp + ecx*4 + 0x1c], 2
mov dword [esp + ecx*4 + 0x20], edi
mov dword [esp + ecx*4 + 0x24], 2
mov ecx, 1
sub ecx, eax
mov eax, ecx
lea ecx, [edx + edx*2]
add edx, 2
mov word [esp + ecx*4 + 0x28], 1
mov word [esp + ecx*4 + 0x2a], ax
mov ecx, dword [esp]
lea eax, [esp + 0x1c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
lea edx, [esp + 8]
call sym.core::fmt::Formatter::pad_formatted_parts::hcdb86b755fe2e917
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4d3c84
push 0x1d
push 0x4d3c65
call sym.core::panicking::panic::h77c9b6f606fdbf34
add esp, 0xc
ud2
mov al, 2
jmp 0x494e22
push 0x4d3cd4
push 0x3d
push str.assertion_failed:_buf.len_____ndigits__buf.len_____maxlen
call sym.core::panicking::panic::h77c9b6f606fdbf34
add esp, 0xc
ud2
push 0x4d3ce4
push 0x400
push edi
call sym.core::slice::index::slice_end_index_len_fail::ha90cccd5bd71ac96
add esp, 0xc
ud2
push 0x4d3c0c
push 0x21
push str.assertion_failed:_buf_0____b0
call sym.core::panicking::panic::h77c9b6f606fdbf34
add esp, 0xc
ud2