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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov edi, ecx
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov ebx, dword [ecx + 0x1c]
test ebx, ebx
js 0x4be2a0
cmp eax, 0xe
fldz
jg 0x4be8d6
fstp st(0)
lea ecx, [eax*4]
shrd edx, ebx, cl
shr ebx, cl
test cl, 0x20
cmove ebx, edx
and ebx, 0xf
fldz
je 0x4be8d6
fstp st(0)
mov ecx, dword [edi + 0x20]
shl eax, 4
fld xword [ecx + eax]
fld st(0)
fstp xword [esp + 0x80]
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x84]
jmp 0x4be2dc
cmp edx, eax
fldz
jle 0x4be8d6
fstp st(0)
mov ecx, dword [edi + 0x20]
lea eax, [eax + eax*2]
fld xword [ecx + eax*8]
fld st(0)
fstp xword [esp + 0x90]
mov ebx, dword [ecx + eax*8 + 0x10]
test ebx, ebx
je 0x4be8d6
mov eax, dword [esp + 0x90]
mov dword [esp + 4], eax
mov esi, dword [esp + 0x94]
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0x10]
mov dword [esp + 0x50], ecx
cmp ebx, 0xf
jne 0x4be319
fstp st(0)
mov ecx, dword [edi + 4]
sub eax, ecx
js 0x4be90b
lea edx, [edi + 4]
add ecx, eax
mov dword [edi + 4], ecx
sub dword [edi + 8], eax
push dword [esp + 0x50]
push edx
push dword [esp + 0xc]
call esi
add esp, 0xc
mov eax, dword [edi + 4]
jmp 0x4be8b1
mov dword [esp + 0x4c], esi
mov esi, dword [ebp + 0x10]
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x34], 0xffffffff
mov word [esp + 0x39], 0x2000
mov byte [esp + 0x3c], 0
mov byte [esp + 0x3e], 1
lea edx, [eax + 1]
cmp edx, esi
jae 0x4be367
cmp byte [edx], 0x7d
jne 0x4be367
movzx ecx, byte [eax]
mov dword [esp + 0x64], edx
mov edx, ecx
and dl, 0xdf
add dl, 0xbf
cmp dl, 0x19
ja 0x4be367
mov byte [esp + 0x38], cl
jmp 0x4be3b2
fstp xword [esp + 0x58]
lea ecx, [edi + 4]
lea edx, [esp + 0x30]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
push ecx
push esi
push eax
call fcn.004beb50
add esp, 0xc
cmp eax, esi
je 0x4be8d8
cmp byte [eax], 0x7d
jne 0x4be8d8
mov dword [esp + 0x64], eax
fld xword [esp + 0x58]
lea esi, [edi + 4]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x28]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
lea eax, [esp + 0x30]
mov dword [esp + 0x70], eax
mov edi, dword [esp + 0x50]
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], 0
dec ebx
cmp ebx, 0xe
ja case.0x4be3e9.5
jmp dword [ebx*4 + 0x4be960]
fstp st(0)
mov dword [esp + 0x18], 0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
test eax, eax
jns 0x4be455
mov byte [esp + 0x18], 0x2d
mov dword [esp + 0x1c], 1
neg eax
mov dword [esp + 0x14], eax
jmp 0x4be47c
fstp st(0)
mov dword [esp + 0x18], 0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
movzx eax, byte [esp + 0x39]
shr al, 4
and al, 7
cmp al, 2
jb 0x4be47c
mov eax, 0x2b
mov ecx, 0x20
cmove ecx, eax
mov byte [esp + 0x18], cl
mov dword [esp + 0x1c], 1
movsx eax, byte [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push eax
jmp 0x4be5b6
fstp st(0)
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 4]
mov dword [esp + 0x18], ecx
test edx, edx
jns 0x4be519
mov byte [esp + 0x20], 0x2d
mov dword [esp + 0x24], 1
xor eax, eax
neg ecx
sbb eax, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x4be540
fstp st(0)
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x18], eax
movzx eax, byte [esp + 0x39]
shr al, 4
and al, 7
cmp al, 2
jb 0x4be540
mov eax, 0x2b
mov ecx, 0x20
cmove ecx, eax
mov byte [esp + 0x20], cl
mov dword [esp + 0x24], 1
movsx eax, byte [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push eax
call fcn.004c13c0
jmp 0x4be5bb
fstp st(0)
movzx ebx, byte [esp + 0x38]
test bl, bl
je 0x4be749
movzx esi, byte [esp + 4]
mov dword [esp + 0x18], 0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], 0
movzx eax, byte [esp + 0x39]
shr al, 4
and al, 7
cmp al, 2
jb 0x4be5ad
mov eax, 0x2b
mov ecx, 0x20
cmove ecx, eax
mov byte [esp + 0x18], cl
mov dword [esp + 0x1c], 1
lea eax, [esp + 8]
movsx ecx, bl
push eax
push ecx
call fcn.004bfe50
add esp, 8
mov eax, dword [esp + 8]
jmp 0x4be8ab
fstp st(0)
lea ecx, [esp + 0x68]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 4]
mov byte [esp + 0xc], cl
lea ecx, [esp + 8]
push ecx
push eax
call fcn.004c2be0
jmp 0x4be6e5
fstp st(0)
movss xmm0, dword [esp + 4]
mov dword [esp + 0x2c], ecx
movaps xmm1, xmmword [esp + 0x30]
movups xmmword [esp + 8], xmm1
mov dword [esp + 0x54], edx
sub esp, 0x1c
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
movups xmm1, xmmword [esp + 0x24]
movups xmmword [esp + 8], xmm1
mov eax, dword [esp + 0x48]
mov dword [esp], eax
movss dword [esp + 4], xmm0
call fcn.004c2e50
add esp, 0x1c
jmp 0x4be8ab
fstp st(0)
movss xmm0, dword [esp + 4]
movss xmm1, dword [esp + 0x4c]
unpcklps xmm0, xmm1
mov dword [esp + 0x2c], ecx
movaps xmm1, xmmword [esp + 0x30]
movups xmmword [esp + 8], xmm1
mov dword [esp + 0x54], edx
sub esp, 0x20
mov eax, dword [esp + 0x74]
mov dword [esp + 0x1c], eax
movups xmm1, xmmword [esp + 0x28]
movups xmmword [esp + 0xc], xmm1
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
movsd qword [esp + 4], xmm0
call fcn.004c3230
add esp, 0x20
jmp 0x4be8ab
mov dword [esp + 0x2c], ecx
movaps xmm0, xmmword [esp + 0x30]
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x54], edx
sub esp, 0x24
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], eax
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [esp + 0x10], xmm0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
fstp xword [esp + 4]
call fcn.004bc5d0
add esp, 0x24
jmp 0x4be8ab
fstp st(0)
movsx eax, byte [esp + 0x38]
lea ecx, [esp + 0x68]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 8]
push ecx
push eax
call fcn.004c37d0
add esp, 8
mov eax, dword [esp + 0x68]
jmp 0x4be8ab
fstp st(0)
mov eax, dword [esp + 4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
sub esp, 8
movsd xmm0, qword [esp + 0x10]
movsd qword [esp], xmm0
lea ecx, [esp + 0x70]
call fcn.004bfb90
jmp 0x4be8ab
fstp st(0)
lea ecx, [esp + 0x68]
push dword [esp + 4]
call fcn.004bfd80
jmp 0x4be8ab
fstp st(0)
push edi
push esi
push dword [esp + 0xc]
call dword [esp + 0x58]
add esp, 0xc
mov eax, dword [edi]
jmp 0x4be8ab
xor ebx, ebx
cmp byte [esp + 4], 0
mov esi, 0x590bcf
mov edx, 0x590bca
cmove edx, esi
mov dword [esp + 4], edx
sete bl
or ebx, 4
mov edi, dword [esp + 0x34]
cmp ebx, edi
mov esi, edi
cmovb esi, ebx
cmovbe esi, ebx
test edi, edi
cmovs esi, ebx
xor ebx, ebx
cmp dword [esp + 0x30], 0
je 0x4be882
test esi, esi
mov edi, dword [esp + 0x50]
je 0x4be886
cmp esi, 8
jae 0x4be880
mov edx, dword [esp + 4]
movzx ebx, byte [edx]
and bl, 0xc0
cmp bl, 0x80
mov ebx, 0
setne bl
cmp esi, 1
je 0x4be886
mov dword [esp + 0x58], ebx
mov edx, dword [esp + 4]
movzx ebx, byte [edx + 1]
and bl, 0xc0
cmp bl, 0x80
mov ebx, dword [esp + 0x58]
mov edx, 0
setne dl
add ebx, edx
cmp esi, 2
je 0x4be886
mov dword [esp + 0x58], ebx
mov edx, dword [esp + 4]
movzx ebx, byte [edx + 2]
and bl, 0xc0
xor edx, edx
cmp bl, 0x80
mov ebx, dword [esp + 0x58]
setne dl
add ebx, edx
cmp esi, 3
je 0x4be886
mov dword [esp + 0x58], ebx
mov edx, dword [esp + 4]
movzx ebx, byte [edx + 3]
and bl, 0xc0
cmp bl, 0x80
mov ebx, dword [esp + 0x58]
mov edx, 0
setne dl
add ebx, edx
cmp esi, 4
je 0x4be886
mov dword [esp + 0x58], ebx
mov edx, dword [esp + 4]
movzx ebx, byte [edx + 4]
and bl, 0xc0
xor edx, edx
cmp bl, 0x80
mov ebx, dword [esp + 0x58]
setne dl
add ebx, edx
cmp esi, 5
je 0x4be886
mov dword [esp + 0x58], ebx
mov edx, dword [esp + 4]
movzx ebx, byte [edx + 5]
and bl, 0xc0
xor edx, edx
cmp bl, 0x80
setne dl
add dword [esp + 0x58], edx
cmp esi, 6
jne 0x4be8bb
mov ebx, dword [esp + 0x58]
jmp 0x4be886
jmp 0x4be880
mov edi, dword [esp + 0x50]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 8]
push edx
push ebx
push esi
push eax
push ecx
call fcn.004c2ac0
add esp, 0x14
mov dword [edi], eax
mov eax, dword [esp + 0x64]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edx, dword [esp + 4]
movzx ebx, byte [edx + 6]
and bl, 0xc0
xor edx, edx
cmp bl, 0x80
setne dl
mov ebx, dword [esp + 0x58]
add ebx, edx
jmp 0x4be886
fstp st(0)
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], 0xab1
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.negative_value
mov dword [esp + 0xc], 0x146
mov dword [esp + 8], str.external_fmtlib_include_fmt_core.h
jmp 0x4be8fe
fstp st(0)
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_argument_type
mov dword [esp + 0xc], 0x8c2
mov dword [esp + 8], str.external_fmtlib_include_fmt_format.h
jmp 0x4be8fe