Function at 0x401280
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40291d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
xor edi, edi
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
lea ebx, [esi + 0xa]
lea ecx, [ebp - 0x48]
call fcn.00401160
xor ecx, ecx
nop dword [eax + eax]
mov eax, ecx
imul eax, ecx
inc ecx
mov dword [ebp - 0x2c], eax
cmp ecx, 0xf4240
jl 0x4012e0
lea ecx, [ebp - 0x38]
call fcn.00401160
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x34]
sbb eax, dword [ebp - 0x44]
push 0
push 0xf4240
push eax
push ecx
call fcn.004026f0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
cmp esi, edi
je 0x40132a
mov dword [esi], eax
mov dword [esi + 4], edx
add esi, 8
mov dword [ebp - 0x18], esi
jmp 0x40133d
lea eax, [ebp - 0x40]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00401840
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
sub ebx, 1
jne 0x4012d1
mov ebx, dword [ebp - 0x1c]
mov eax, esi
sub eax, ebx
xorps xmm2, xmm2
sar eax, 3
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
movsd qword [ebp - 0x40], xmm2
movsd qword [ebp - 0x38], xmm0
cmp ebx, esi
je 0x401387
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
call fcn.004028c0
addsd xmm0, qword [ebp - 0x38]
add ebx, 8
movsd qword [ebp - 0x38], xmm0
cmp ebx, esi
jne 0x401363
mov ebx, dword [ebp - 0x1c]
xorps xmm2, xmm2
mov eax, dword [ebp - 0x2c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x403220]
mov eax, ebx
mov dword [ebp - 0x2c], eax
movsd qword [ebp - 0x48], xmm1
divsd xmm0, xmm1
movsd qword [ebp - 0x38], xmm0
cmp eax, esi
je 0x4013e2
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
call fcn.004028c0
subsd xmm0, qword [ebp - 0x38]
movsd xmm2, qword [ebp - 0x40]
add ebx, 8
mulsd xmm0, xmm0
addsd xmm2, xmm0
movsd qword [ebp - 0x40], xmm2
cmp ebx, esi
jne 0x4013b2
movsd xmm1, qword [ebp - 0x48]
mov ebx, dword [ebp - 0x1c]
divsd xmm2, xmm1
xorps xmm1, xmm1
movaps xmm0, xmm2
ucomisd xmm1, xmm0
ja 0x4013f8
sqrtsd xmm0, xmm0
jmp 0x4013fd
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
comisd xmm0, xmmword [0x403210]
mov dword [ebp - 4], 0xffffffff
seta al
mov byte [ebp - 0x25], al
test ebx, ebx
je 0x401448
sub edi, ebx
mov eax, ebx
and edi, 0xfffffff8
cmp edi, 0x1000
jb 0x40143b
mov ebx, dword [eax - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40143b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push ebx
call fcn.004019ea
mov al, byte [ebp - 0x25]
add esp, 8
test al, al
je 0x401454
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.The_Value_of_a_Var_:_0x
call fcn.004015f0
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
push 0x401810
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.The_Value_Of_b_Var_:_0x
call fcn.004015f0
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
push 0x401810
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004019ac
mov esp, ebp
pop ebp
ret