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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
movsd xmm1, qword [ebp + 8]
xorpd xmm0, xmm0
ucomisd xmm1, xmm0
jb 0x50f1af
mov esi, dword [ebp + 0x1c]
lea eax, [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
cmp cl, 2
sete dl
ucomisd xmm0, xmm1
jae 0x50eab8
test ecx, 0x80000
jne 0x50eaf7
movsd xmm0, qword [eax]
movsd qword [esp + 0x74], xmm0
sub esp, 0x18
movsd xmm0, qword [esp + 0x8c]
movsd qword [esp + 0xc], xmm0
mov dword [esp + 0x14], esi
mov dword [esp + 8], edi
movsd qword [esp], xmm1
call fcn.0050e370
add esp, 0x18
jmp 0x50f186
test edi, edi
jle 0x50eb74
cmp cl, 2
jne 0x50eb74
mov eax, dword [esi + 0xc]
cmp eax, edi
jae 0x50eada
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 0x50f184
test edi, edi
js 0x50eb9d
mov byte [esp + 0x14], dl
mov dword [esp + 0x2c], ecx
movsd qword [esp + 0x68], xmm1
mov ecx, dword [esp + 0x6c]
xor eax, eax
add eax, 0xffffffff
mov edx, 0x100000
adc edx, 0xffffffff
and edx, ecx
shr ecx, 0x14
and ecx, 0x7ff
mov eax, edx
or eax, 0x100000
test ecx, ecx
lea esi, [ecx - 0x433]
cmove eax, edx
mov ecx, 0xfffffbce
cmovne ecx, esi
mov ebx, dword [esp + 0x68]
test eax, 0x100000
jne 0x50ebed
mov esi, eax
nop word cs:[eax + eax]
nop
shld esi, ebx, 1
add ebx, ebx
add ecx, 0xffffffff
test eax, 0x80000
mov eax, esi
je 0x50eb60
jmp 0x50ebef
mov ecx, dword [esi + 8]
lea eax, [ecx + 1]
cmp dword [esi + 0xc], eax
jae 0x50eb8c
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 0x50f184
test ecx, 0x40000
jne 0x50f0a9
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.0050cc50
add esp, 0xc
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x60]
push dword [esp + 0x34]
push dword [esp + 0x34]
push eax
call fcn.0050f430
add esp, 0xc
mov edi, dword [esp + 0x38]
jmp 0x50f184
mov esi, eax
mov eax, 0xffffffce
sub eax, ecx
mov edx, 0x4d104d42
imul edx
mov dword [esp + 8], edx
mov edx, eax
add edx, 0xffffffff
mov edx, dword [esp + 8]
adc edx, 0x15b
add eax, 0xffffffff
mov eax, dword [esp + 8]
adc eax, 0x162
shld esi, ebx, 0xb
shl ebx, 0xb
test edx, edx
cmovns eax, edx
sar eax, 3
mov dword [esp + 8], eax
mov eax, dword [eax*8 + 0x57320c]
mov dword [esp + 0xc], eax
mul esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
mul ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 8]
mov eax, dword [eax*8 + 0x573208]
mov dword [esp + 0x28], eax
mul esi
mov esi, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mul ebx
xor eax, eax
add edx, dword [esp + 0x24]
setb al
add edx, dword [esp + 0x18]
adc eax, 0
mov ebx, esi
add ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
adc esi, 0
add ebx, dword [esp + 0xc]
adc esi, 0
add edx, 0x80000000
adc ebx, eax
adc esi, 0
mov edx, esi
mov eax, dword [esp + 8]
movsx eax, word [eax + eax + 0x5734ba]
add eax, ecx
mov ecx, 0xffffffcb
sub ecx, eax
cmp edi, 0x2ff
mov eax, 0x2ff
cmovl eax, edi
mov dword [esp + 0x18], eax
mov esi, 1
xor edi, edi
shld edi, esi, cl
shl esi, cl
mov dword [esp + 0x24], ebx
mov eax, edx
shrd ebx, edx, cl
mov dword [esp + 0x10], edx
shr eax, cl
mov edx, dword [esp + 8]
lea edx, [edx*8 + 8]
mov dword [esp + 0x44], edx
mov edx, 0x15c
sub edx, dword [esp + 0x44]
mov dword [esp + 0x1c], ecx
test cl, 0x20
cmovne edi, esi
mov ecx, 0
cmovne esi, ecx
cmovne ebx, eax
cmovne eax, ecx
mov dword [esp + 0x40], 0
mov ecx, dword [ebp + 0x1c]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov cl, byte [esp + 0x14]
mov byte [esp + 0x40], cl
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x50f202
mov dword [esp + 8], edx
test eax, eax
jne 0x50f222
mov dword [esp + 0x5c], esi
add esi, 0xffffffff
mov dword [esp + 0x58], edi
adc edi, 0xffffffff
mov ebx, dword [esp + 0x24]
mov eax, ebx
mov dword [esp + 0x54], esi
and eax, esi
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x10]
mov eax, edx
mov dword [esp + 0x50], edi
and eax, edi
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0xc]
mov eax, ecx
or eax, 1
bsr eax, eax
movzx esi, word [eax + eax + 0x573d40]
cmp ecx, dword [esi*4 + 0x573128]
sbb esi, 0
mov edi, dword [esi*8 + 0x573080]
mov eax, dword [esi*8 + 0x573084]
mov ecx, dword [esp + 0x1c]
shld eax, edi, cl
shl edi, cl
test cl, 0x20
cmovne eax, edi
mov dword [esp + 0x4c], eax
mov eax, 0
cmovne edi, eax
push 0
push 0xa
push edx
push ebx
call fcn.004a1800
add esp, 0x10
mov dword [esp + 0x20], esi
cmp byte [esp + 0x2c], 2
jne 0x50ee00
mov ecx, dword [esp + 8]
add ecx, dword [esp + 0x18]
add ecx, esi
mov dword [esp + 0x38], ecx
test ecx, ecx
jle 0x50f0d9
mov edi, dword [esp + 0xc]
nop word cs:[eax + eax]
nop
lea eax, [esi - 1]
cmp eax, 9
ja case.default.0x50ee28
mov dword [esp + 8], 0
mov dword [esp + 0x18], eax
jmp dword [eax*4 + 0x50f270]
mov ecx, 0xcccccccd
mov eax, edi
mul ecx
shr edx, 3
lea eax, [edx + edx]
lea eax, [eax + eax*4]
jmp 0x50eef0
mov ecx, 0x51eb851f
mov eax, edi
mul ecx
shr edx, 5
imul eax, edx, 0x64
jmp 0x50eef0
mov ecx, 0x10624dd3
mov eax, edi
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
jmp 0x50eef0
mov ecx, 0xd1b71759
mov eax, edi
mul ecx
shr edx, 0xd
imul eax, edx, 0x2710
jmp 0x50eef0
mov eax, edi
shr eax, 5
mov ecx, 0xa7c5ac5
mul ecx
shr edx, 7
imul eax, edx, 0x186a0
jmp 0x50eef0
mov ecx, 0x431bde83
mov eax, edi
mul ecx
shr edx, 0x12
imul eax, edx, 0xf4240
jmp 0x50eef0
mov ecx, 0x6b5fca6b
mov eax, edi
mul ecx
shr edx, 0x16
imul eax, edx, 0x989680
jmp 0x50eef0
mov ecx, 0x55e63b89
mov eax, edi
mul ecx
shr edx, 0x19
imul eax, edx, 0x5f5e100
jmp 0x50eef0
mov eax, edi
shr eax, 9
mov ecx, 0x44b83
mul ecx
shr edx, 7
imul eax, edx, 0x3b9aca00
nop dword [eax]
sub edi, eax
mov dword [esp + 8], edi
mov edi, edx
mov dword [esp + 0xc], edi
mov edx, dword [esi*8 + 0x573084]
mov ebx, dword [esi*8 + 0x573080]
mov dword [esp + 0x10], esi
mov esi, ebx
mov ecx, dword [esp + 0x1c]
shl esi, cl
xor edi, edi
test cl, 0x20
mov eax, esi
cmovne eax, edi
mov dword [esp + 0x24], eax
shld edx, ebx, cl
test cl, 0x20
cmovne edx, esi
mov esi, dword [esp + 8]
mov ebx, esi
shl ebx, cl
test cl, 0x20
mov eax, ebx
cmovne eax, edi
shld edi, esi, cl
test cl, 0x20
cmovne edi, ebx
add eax, dword [esp + 0x14]
adc edi, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
add cl, 0x30
movsx ebx, cl
lea ecx, [esp + 0x30]
push 1
mov esi, dword [esp + 0x1c]
push esi
push 0
push 1
push edi
push eax
push edx
push dword [esp + 0x40]
push ebx
call fcn.00527330
test eax, eax
jne 0x50f044
lea eax, [esi + 1]
mov edi, dword [esp + 8]
cmp eax, 1
ja 0x50ee10
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
nop dword [eax]
mov eax, edi
mov ecx, 0xa
mul ecx
lea ecx, [esi + esi*4]
lea esi, [edx + ecx*2]
mov edi, eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
shrd edi, esi, cl
mov ebx, esi
shr ebx, cl
mov eax, dword [esp + 0xc]
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
test byte [esp + 0x1c], 0x20
cmove ebx, edi
mov edi, dword [esp + 0x14]
add bl, 0x30
and esi, dword [esp + 0x50]
and edi, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
add edx, 0xffffffff
movsx ecx, bl
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x30]
push 0
mov dword [esp + 0x14], edx
push edx
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x18], eax
push eax
push esi
push edi
push dword [esp + 0x70]
push dword [esp + 0x78]
push dword [esp + 0x34]
call fcn.00527330
test eax, eax
je 0x50efb0
mov esi, dword [esp + 0x10]
jmp 0x50f04b
mov esi, dword [esp + 0x10]
add esi, 0xffffffff
cmp eax, 2
mov edi, dword [ebp + 0x1c]
mov ebx, dword [esp + 0x2c]
movsd xmm0, qword [ebp + 8]
jne 0x50f11c
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
sub ecx, dword [esp + 0x44]
add ecx, esi
add ecx, 0x15b
mov dword [esp + 0x20], ecx
mov ecx, ebx
shr ecx, 0x12
and ecx, 1
sub esp, 0x18
lea edx, [esp + 0x38]
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.0050f630
add esp, 0x18
jmp 0x50f149
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm1
sub esp, 4
movss dword [esp], xmm0
call fcn.0050c5b0
add esp, 4
mov edi, edx
mov dword [esp + 0x64], esi
mov ecx, dword [esp + 0x64]
push eax
push ecx
call fcn.0050f2a0
add esp, 8
jmp 0x50f184
mov ebx, dword [esp + 0x2c]
js 0x50f119
push 0
push 0xa
push edx
push eax
push dword [esp + 0x5c]
push edi
call fcn.005274d0
add esp, 0x18
test eax, eax
mov edi, dword [ebp + 0x1c]
je 0x50f1a1
cmp eax, 1
sete al
or al, 0x30
mov dword [esp + 0x34], 1
mov ecx, dword [esp + 0x48]
mov byte [ecx], al
mov esi, dword [esp + 0x20]
jmp 0x50f11c
mov edi, dword [ebp + 0x1c]
add esi, dword [esp + 0x3c]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x34]
test esi, esi
js 0x50f242
mov eax, dword [edi + 0xc]
cmp eax, esi
jae 0x50f141
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 bl, 2
je 0x50f180
and ebx, 0x100000
jne 0x50f180
mov esi, dword [edi + 8]
test esi, esi
je 0x50f173
mov eax, dword [edi + 4]
cmp byte [eax + esi - 1], 0x30
jne 0x50f18e
add esi, 0xffffffff
add dword [esp + 0x20], 1
test esi, esi
jne 0x50f160
mov eax, dword [edi + 0xc]
xor esi, esi
cmp eax, esi
cmovb esi, eax
mov dword [edi + 8], esi
mov edi, dword [esp + 0x20]
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 0x50f178
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax]
mov eax, dword [edi + 0xc]
jmp 0x50f178
xor eax, eax
xor ecx, ecx
movsd xmm0, qword [ebp + 8]
jmp 0x50f068
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.0050a710
add esp, 0x14
call fcn.004949d0
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 0x50f1cd
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], 0x572e6c
mov dword [esp + 0xc], 0x5ec
jmp 0x50f1cd
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], 0x572e6c
mov dword [esp + 0xc], 0x5ed
jmp 0x50f1cd
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 0x50f1d5