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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
movsd xmm1, qword [ebp + 8]
xorpd xmm0, xmm0
ucomisd xmm1, xmm0
jb 0x4ac9e4
mov esi, dword [ebp + 0x1c]
lea eax, [ebp + 0x14]
mov ecx, dword [eax + 4]
movzx edx, cl
cmp edx, 2
sete bl
ucomisd xmm0, xmm1
mov edi, dword [ebp + 0x10]
jae 0x4ac25e
test ecx, 0x80000
jne 0x4ac29d
movsd xmm0, qword [eax]
movsd qword [esp + 0x84], xmm0
sub esp, 0x18
movsd xmm0, qword [esp + 0x9c]
movsd qword [esp + 0xc], xmm0
mov dword [esp + 0x14], esi
mov dword [esp + 8], edi
movsd qword [esp], xmm1
call fcn.004abb10
add esp, 0x18
jmp 0x4ac9b4
test edi, edi
jle 0x4ac2f1
cmp edx, 2
jne 0x4ac2f1
mov eax, dword [esi + 0xc]
cmp eax, edi
jae 0x4ac280
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax]
mov eax, dword [esi + 0xc]
cmp eax, edi
cmovae eax, edi
mov dword [esi + 8], eax
push edi
push 0x30
push dword [esi + 4]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
neg edi
jmp 0x4ac9b2
test edi, edi
js 0x4ac31a
mov byte [esp + 0x20], bl
mov dword [esp + 0x50], edx
mov dword [esp + 0x28], ecx
movsd qword [esp + 0x78], xmm1
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov eax, ecx
and eax, 0xfffff
shr ecx, 0x14
and ecx, 0x7ff
mov ebx, edx
add ebx, 0xffffffff
mov esi, eax
adc esi, 0xfffff
add ebx, 1
adc esi, 0
test ecx, ecx
je 0x4ac36a
add ecx, 0xfffffbcd
jmp 0x4ac390
mov ecx, dword [esi + 8]
lea eax, [ecx + 1]
cmp dword [esi + 0xc], eax
jae 0x4ac309
mov edx, dword [esi]
mov ecx, esi
push eax
call dword [edx]
mov ecx, dword [esi + 8]
lea eax, [ecx + 1]
mov edx, dword [esi + 4]
mov dword [esi + 8], eax
mov byte [edx + ecx], 0x30
xor edi, edi
jmp 0x4ac9b2
test ecx, 0x40000
jne 0x4ac8bb
xorpd xmm0, xmm0
movapd xmmword [esp + 0x30], xmm0
sub esp, 0xc
movsd qword [esp + 4], xmm1
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.004aa540
add esp, 0xc
mov dword [esp + 0x70], esi
mov eax, dword [esp + 0x70]
push dword [esp + 0x34]
push dword [esp + 0x34]
push eax
call fcn.004acc50
add esp, 0xc
mov edi, dword [esp + 0x38]
jmp 0x4ac9b2
mov ecx, 0xfffffbce
mov ebx, edx
mov esi, eax
nop word cs:[eax + eax]
shld esi, ebx, 1
add ebx, ebx
dec ecx
test eax, 0x80000
mov eax, esi
je 0x4ac380
mov eax, 0xffffffce
sub eax, ecx
mov edx, 0x4d104d42
imul edx
mov dword [esp + 0xc], edx
mov edx, eax
add edx, 0xffffffff
mov edx, dword [esp + 0xc]
adc edx, 0x15b
add eax, 0xffffffff
mov eax, dword [esp + 0xc]
adc eax, 0x162
shld esi, ebx, 0xb
shl ebx, 0xb
test edx, edx
cmovns eax, edx
sar eax, 3
mov dword [esp + 0xc], eax
mov eax, dword [eax*8 + 0x590e5c]
mov dword [esp + 0x14], eax
mul esi
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mul ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0xc]
mov eax, dword [eax*8 + 0x590e58]
mov dword [esp + 0x2c], eax
mul esi
mov esi, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mul ebx
xor eax, eax
add edx, dword [esp + 0x24]
setb al
add edx, dword [esp + 0x1c]
adc eax, 0
mov ebx, esi
add ebx, dword [esp + 0x10]
mov esi, dword [esp + 8]
adc esi, 0
add ebx, dword [esp + 0x14]
adc esi, 0
add edx, 0x80000000
adc ebx, eax
mov edx, ebx
adc esi, 0
mov dword [esp + 8], esi
mov ebx, dword [esp + 0xc]
movsx eax, word [ebx + ebx + 0x59110a]
add eax, ecx
mov ecx, 0xffffffcb
sub ecx, eax
cmp edi, 0x2ff
mov eax, 0x2ff
cmovl eax, edi
mov dword [esp + 0x1c], eax
mov esi, 1
xor edi, edi
shld edi, esi, cl
shl esi, cl
mov dword [esp + 0x24], edx
mov eax, dword [esp + 8]
shrd edx, eax, cl
shr eax, cl
lea ebx, [ebx*8 + 8]
mov dword [esp + 0x4c], ebx
mov ebx, 0x15c
sub ebx, dword [esp + 0x4c]
mov dword [esp + 0x14], ecx
test cl, 0x20
cmovne edi, esi
mov dword [esp + 0x2c], edi
mov ecx, 0
cmovne esi, ecx
cmovne edx, eax
cmovne eax, ecx
mov dword [esp + 0x40], 0
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ecx + 4]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x3c], ebx
movzx ecx, byte [esp + 0x20]
mov byte [esp + 0x40], cl
mov dword [esp + 0x10], edx
test edx, edx
je 0x4aca37
mov dword [esp + 0x58], edi
test eax, eax
jne 0x4aca57
mov dword [esp + 0x6c], esi
mov edi, esi
add edi, 0xffffffff
mov eax, dword [esp + 0x2c]
adc eax, 0xffffffff
mov ebx, dword [esp + 0x24]
mov ecx, ebx
and ecx, edi
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x64], eax
and ecx, eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x10]
mov eax, ecx
or eax, 1
bsr eax, eax
movzx esi, word [eax + eax + 0x591990]
cmp ecx, dword [esi*4 + 0x590d78]
sbb esi, 0
mov edx, dword [esi*8 + 0x590cd0]
mov eax, dword [esi*8 + 0x590cd4]
mov ecx, dword [esp + 0x14]
shld eax, edx, cl
shl edx, cl
test cl, 0x20
cmovne eax, edx
mov dword [esp + 0x5c], eax
mov eax, 0
cmovne edx, eax
mov dword [esp + 0x60], edx
mov eax, dword [esp + 8]
shrd ebx, eax, 1
shr eax, 1
mov dword [esp + 8], eax
mov ecx, ebx
add ecx, eax
adc ecx, 0
mov eax, ecx
mov edx, 0xcccccccd
mul edx
shr edx, 2
lea eax, [edx + edx*4]
sub ecx, eax
sub ebx, ecx
mov ecx, ebx
mov ebx, dword [esp + 8]
sbb ebx, 0
mov eax, ecx
mov edx, 0xcccccccd
mul edx
mov dword [esp + 8], eax
mov eax, esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x50], 2
mov dword [esp + 0x68], edi
jne 0x4ac5f4
imul ecx, ecx, 0xcccccccc
add edx, ecx
imul ecx, ebx, 0xcccccccd
add ecx, edx
mov edx, dword [esp + 0xc]
add edx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
add edx, eax
mov dword [esp + 0x38], edx
test edx, edx
jle 0x4ac8eb
mov ebx, dword [esp + 0xc]
jmp 0x4ac5f6
mov ebx, eax
mov edx, dword [esp + 0x10]
nop word [eax + eax]
lea eax, [ebx - 1]
cmp eax, 9
ja case.default.0x4ac61c
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jmp dword [eax*4 + 0x4acaa4]
mov esi, edx
mov edx, 0xcccccccd
mov eax, esi
mul edx
shr edx, 3
lea eax, [edx + edx]
lea eax, [eax + eax*4]
jmp 0x4ac700
mov esi, edx
mov edx, 0x51eb851f
mov eax, esi
mul edx
shr edx, 5
imul eax, edx, 0x64
jmp 0x4ac700
mov esi, edx
mov edx, 0x10624dd3
mov eax, esi
mul edx
shr edx, 6
imul eax, edx, 0x3e8
jmp 0x4ac700
mov esi, edx
mov edx, 0xd1b71759
mov eax, esi
mul edx
shr edx, 0xd
imul eax, edx, 0x2710
jmp 0x4ac700
mov esi, edx
mov eax, edx
shr eax, 5
mov edx, 0xa7c5ac5
mul edx
shr edx, 7
imul eax, edx, 0x186a0
jmp 0x4ac700
mov esi, edx
mov edx, 0x431bde83
mov eax, esi
mul edx
shr edx, 0x12
imul eax, edx, 0xf4240
jmp 0x4ac700
mov esi, edx
mov edx, 0x6b5fca6b
mov eax, esi
mul edx
shr edx, 0x16
imul eax, edx, 0x989680
jmp 0x4ac700
mov esi, edx
mov edx, 0x55e63b89
mov eax, esi
mul edx
shr edx, 0x19
imul eax, edx, 0x5f5e100
jmp 0x4ac700
mov esi, edx
mov eax, edx
shr eax, 9
mov edx, 0x44b83
mul edx
shr edx, 7
imul eax, edx, 0x3b9aca00
nop word cs:[eax + eax]
sub esi, eax
mov dword [esp + 8], esi
mov dword [esp + 0x10], edx
mov edi, dword [ebx*8 + 0x590cd0]
mov esi, edi
shl esi, cl
mov edx, dword [ebx*8 + 0x590cd4]
mov dword [esp + 0xc], ebx
xor ebx, ebx
test cl, 0x20
mov eax, esi
cmovne eax, ebx
mov dword [esp + 0x24], eax
shld edx, edi, cl
test cl, 0x20
cmovne edx, esi
mov eax, dword [esp + 8]
mov edi, eax
shl edi, cl
test cl, 0x20
mov esi, edi
cmovne esi, ebx
shld ebx, eax, cl
test cl, 0x20
cmovne ebx, edi
add esi, dword [esp + 0x20]
adc ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
add al, 0x30
movsx eax, al
lea ecx, [esp + 0x30]
push 1
mov edi, dword [esp + 0x20]
push edi
push 0
push 1
push ebx
push esi
push edx
push dword [esp + 0x40]
push eax
call fcn.004c3b10
test eax, eax
jne 0x4ac855
lea eax, [edi + 1]
mov ebx, edi
mov edx, dword [esp + 8]
cmp eax, 1
ja 0x4ac600
xor edi, edi
mov dword [esp + 0x10], 1
mov dword [esp + 8], 0
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x20]
nop word cs:[eax + eax]
mov dword [esp + 0xc], edi
mov eax, esi
mov ecx, 0xa
mul ecx
lea ecx, [ebx + ebx*4]
lea edi, [edx + ecx*2]
mov dword [esp + 0x20], eax
mov esi, eax
mov ebx, dword [esp + 0x14]
mov ecx, ebx
shrd esi, edi, cl
mov eax, dword [esp + 0x10]
mov ecx, 0xa
mul ecx
mov ecx, dword [esp + 8]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*2]
mov dword [esp + 8], ecx
mov edx, edi
mov ecx, ebx
shr edx, cl
test bl, 0x20
cmove edx, esi
mov esi, dword [esp + 0x20]
mov ebx, edi
mov edi, dword [esp + 0xc]
add dl, 0x30
and ebx, dword [esp + 0x64]
and esi, dword [esp + 0x68]
dec edi
mov dword [esp + 0x10], eax
movsx edx, dl
lea ecx, [esp + 0x30]
push 0
push edi
mov eax, dword [esp + 0x10]
push eax
push dword [esp + 0x1c]
push ebx
push esi
push dword [esp + 0x44]
push dword [esp + 0x88]
push edx
call fcn.004c3b10
test eax, eax
je 0x4ac7c0
mov dword [esp + 0xc], edi
jmp 0x4ac859
dec dword [esp + 0xc]
cmp eax, 2
mov edi, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x28]
movsd xmm0, qword [ebp + 8]
jne 0x4ac933
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
sub ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0xc]
add ecx, edx
add ecx, 0x15b
mov dword [esp + 0x18], ecx
mov ecx, ebx
shr ecx, 0x12
and ecx, 1
sub esp, 0x18
lea edx, [esp + 0x30]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
movsd qword [esp], xmm0
call fcn.004ace40
add esp, 0x18
jmp 0x4ac964
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
sub esp, 4
movss dword [esp], xmm0
call fcn.004a9f00
add esp, 4
mov edi, edx
mov dword [esp + 0x74], esi
mov ecx, dword [esp + 0x74]
push eax
push ecx
call fcn.004acad0
add esp, 8
jmp 0x4ac9b2
js 0x4ac92c
push 0
push 0xa
push ecx
push dword [esp + 0x14]
push dword [esp + 0x6c]
push dword [esp + 0x74]
call fcn.004c3ca0
add esp, 0x18
test eax, eax
je 0x4ac9cf
cmp eax, 1
sete al
or al, 0x30
mov dword [esp + 0x34], 1
mov ecx, dword [esp + 0x58]
mov byte [ecx], al
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov edi, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x34]
test esi, esi
js 0x4aca77
mov eax, dword [edi + 0xc]
cmp eax, esi
jae 0x4ac95c
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax]
mov eax, dword [edi + 0xc]
cmp eax, esi
cmovb esi, eax
mov dword [edi + 8], esi
cmp dword [esp + 0x50], 2
je 0x4ac9ae
and ebx, 0x100000
jne 0x4ac9ae
mov esi, dword [edi + 8]
test esi, esi
je 0x4ac9a1
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 4]
inc eax
nop word cs:[eax + eax]
cmp byte [ecx + esi - 1], 0x30
jne 0x4ac9bc
dec esi
mov dword [esp + 0x18], eax
inc eax
test esi, esi
jne 0x4ac990
mov eax, dword [edi + 0xc]
xor esi, esi
cmp eax, esi
cmovb esi, eax
mov dword [edi + 8], esi
mov edi, dword [esp + 0x18]
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [edi + 0xc]
cmp eax, esi
jae 0x4ac9a6
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax]
mov eax, dword [edi + 0xc]
jmp 0x4ac9a6
xor eax, eax
xor ecx, ecx
mov edi, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x28]
movsd xmm0, qword [ebp + 8]
jmp 0x4ac876
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 0x10], str.value_is_negative
mov dword [esp + 0xc], 0x980
mov dword [esp + 8], str.external_fmtlib_include_fmt_format_inl.h
call fcn.004a8080
add esp, 0x14
call fcn.0049aa70
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 0x10], str.invalid_number_of_digits
mov dword [esp + 0xc], 0x61f
jmp 0x4aca02
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 0x10], 0x590abc
mov dword [esp + 0xc], 0x5ec
jmp 0x4aca02
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 0x10], 0x590abc
mov dword [esp + 0xc], 0x5ed
jmp 0x4aca02
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
sub esp, 0x10
mov dword [esp], eax
mov dword [esp + 0x10], str.negative_value
mov dword [esp + 0xc], 0x146
mov dword [esp + 8], str.external_fmtlib_include_fmt_core.h
jmp 0x4aca0a