Function at 0x40cab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421292
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x42b00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x48c], edi
mov dword [ebp - 0x494], edi
xor eax, eax
mov dword [ebp - 0x49c], edi
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x464]
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x488], eax
push 0x4245f8
movups xmmword [ebp - 0x464], xmm0
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
call fcn.004051c0
push 0x424acc
push str.wmic_path_win32_VideoController_get_name__adapterram
mov byte [ebp - 4], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov esi, eax
mov dword [ebp - 0x484], esi
add esp, 8
nop word [eax + eax]
push esi
push 0x438
lea eax, [ebp - 0x44c]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
je 0x40cc3f
push ecx
lea ecx, [ebp - 0x44c]
add eax, ecx
push eax
mov eax, ecx
lea ecx, [ebp - 0x4cc]
push eax
call fcn.00405900
mov byte [ebp - 4], 2
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40cb96
mov ecx, dword [eax]
mov edi, dword [eax + 0x10]
mov esi, dword [ebp - 0x450]
mov eax, esi
mov edx, dword [ebp - 0x454]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x40cbda
lea eax, [edx + edi]
cmp esi, 0x10
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x464]
cmovae eax, dword [ebp - 0x464]
lea esi, [eax + edx]
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x40cbf3
mov byte [ebp - 0x490], 0
lea ecx, [ebp - 0x464]
push dword [ebp - 0x490]
push edi
call fcn.00405570
mov esi, dword [ebp - 0x484]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4b8]
cmp ecx, 0x10
jb 0x40cb50
mov edx, dword [ebp - 0x4cc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40cc33
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40cc33
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041f6f2
jmp 0x40cb43
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
sub esp, 0x14
mov dword [ebp - 0x468], 0
lea eax, [ebp - 0x464]
mov byte [ebp - 0x47d], 0xa
xorps xmm0, xmm0
mov ecx, esp
movq qword [ebp - 0x470], xmm0
push eax
call fcn.00404790
mov dl, byte [ebp - 0x47d]
lea ecx, [ebp - 0x470]
call fcn.00407b70
add esp, 0x18
push 0
push 0x4245f8
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 3
call fcn.00415370
mov edi, dword [ebp - 0x46c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x470]
mov ecx, edi
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x40d248
mov dword [ebp - 0x484], 1
mov ecx, edi
mov eax, 0x2aaaaaab
sub ecx, esi
xorps xmm0, xmm0
imul ecx
mov ecx, dword [ebp - 0x484]
sar edx, 2
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp ecx, eax
jae 0x40d13b
sub esp, 0x18
movq qword [ebp - 0x47c], xmm0
lea eax, [ecx + ecx*2]
mov dword [ebp - 0x474], 0
lea eax, [esi + eax*8]
mov byte [ebp - 0x47d], 0x20
mov edi, esp
lea ecx, [ebp - 0x4b4]
push eax
call fcn.00404790
mov byte [ebp - 4], 4
lea esi, [ebp - 0x4b4]
cmp dword [ebp - 0x4a0], 0x10
mov eax, dword [ebp - 0x4a4]
cmovae esi, dword [ebp - 0x4b4]
test eax, eax
je 0x40cd60
push eax
push 0xd
push esi
call sub.VCRUNTIME140.dll_memchr
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x40cd60
sub ecx, esi
jmp 0x40cd63
or ecx, 0xffffffff
xorps xmm0, xmm0
lea eax, [ebp - 0x4b4]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
cmp dword [ebp - 0x4a4], ecx
cmovb ecx, dword [ebp - 0x4a4]
cmp dword [ebp - 0x4a0], 0x10
push ecx
cmovae eax, dword [ebp - 0x4b4]
mov ecx, edi
push eax
call fcn.004051c0
mov eax, dword [ebp - 0x488]
or eax, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4a0]
mov dword [ebp - 0x488], eax
cmp ecx, 0x10
jb 0x40cdf0
mov edx, dword [ebp - 0x4b4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40cde6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40cde6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041f6f2
add esp, 8
mov dl, byte [ebp - 0x47d]
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x4a0], 0xf
mov byte [ebp - 0x4b4], 0
call fcn.00407b70
add esp, 0x18
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push dword [ebp - 0x47c]
call fcn.00404790
lea ecx, [ebp - 0x4cc]
call fcn.00409200
add esp, 0x18
mov byte [ebp - 4], 6
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40ce4f
mov ecx, dword [eax]
mov edi, dword [eax + 0x10]
mov esi, dword [ebp - 0x450]
mov eax, esi
mov edx, dword [ebp - 0x454]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x40ce93
lea eax, [edi + edx]
cmp esi, 0x10
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x464]
cmovae eax, dword [ebp - 0x464]
lea esi, [eax + edx]
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x40ceac
mov byte [ebp - 0x4d0], 0
lea ecx, [ebp - 0x464]
push dword [ebp - 0x4d0]
push edi
call fcn.00405570
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4b8]
cmp ecx, 0x10
jb 0x40ceec
mov edx, dword [ebp - 0x4cc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40cee2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40cee2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041f6f2
add esp, 8
mov esi, 1
mov ecx, dword [ebp - 0x478]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x47c]
sub ecx, edi
imul ecx
mov dword [ebp - 0x490], esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x40d043
lea eax, [esi + esi*2]
mov edx, dword [edi + eax*8 + 0x10]
lea ecx, [edi + eax*8]
test edx, edx
je 0x40d03d
mov eax, closesocket
sub eax, edx
cmp eax, 1
jb 0x40d382
cmp dword [ecx + 0x14], 0x10
jb 0x40cf48
mov ecx, dword [ecx]
push edx
push ecx
push 1
push 0x424b08
push ecx
push dword [ebp - 0x494]
lea ecx, [ebp - 0x4cc]
call fcn.0040acb0
or dword [ebp - 0x488], 2
mov byte [ebp - 4], 7
lea edx, [ebp - 0x4cc]
cmp dword [ebp - 0x4b8], 0x10
mov ecx, dword [ebp - 0x454]
mov edi, dword [ebp - 0x4cc]
cmovae edx, edi
mov eax, dword [ebp - 0x450]
sub eax, ecx
mov dword [ebp - 0x498], ecx
mov ecx, dword [ebp - 0x4bc]
push ecx
push edx
cmp ecx, eax
ja 0x40cfe4
mov esi, dword [ebp - 0x498]
cmp dword [ebp - 0x450], 0x10
lea eax, [ecx + esi]
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x464]
cmovae eax, dword [ebp - 0x464]
add esi, eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x4bc]
add esp, 0xc
mov byte [eax + esi], 0
mov esi, dword [ebp - 0x490]
jmp 0x40d003
mov byte [ebp - 0x4d4], 0
push dword [ebp - 0x4d4]
push ecx
lea ecx, [ebp - 0x464]
call fcn.00405570
mov edi, dword [ebp - 0x4cc]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x4b8]
cmp eax, 0x10
jb 0x40d03d
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40d033
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0f6
push ecx
push edi
call fcn.0041f6f2
add esp, 8
inc esi
jmp 0x40cef1
mov edx, dword [ebp - 0x450]
mov eax, edx
mov ecx, dword [ebp - 0x454]
sub eax, ecx
cmp eax, 1
jb 0x40d079
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x464]
cmovae eax, dword [ebp - 0x464]
mov word [eax + ecx], 0x3b
jmp 0x40d09a
push 1
push 0x424b0c
mov byte [ebp - 0x494], 0
lea ecx, [ebp - 0x464]
push dword [ebp - 0x494]
push 1
call fcn.00405570
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x47c]
test ecx, ecx
je 0x40d124
mov edx, dword [ebp - 0x478]
push ecx
call fcn.0040a940
mov ecx, dword [ebp - 0x474]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x47c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40d0fc
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d0fc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0041f6f2
add esp, 8
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 0
inc dword [ebp - 0x484]
mov edi, dword [ebp - 0x46c]
mov esi, dword [ebp - 0x470]
jmp 0x40ccd1
mov eax, dword [ebp - 0x48c]
mov ecx, 0xf
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmm0, xmmword [ebp - 0x464]
mov byte [ebp - 0x464], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x454]
movq qword [eax + 0x10], xmm0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], ecx
test esi, esi
je 0x40d207
push ecx
mov edx, edi
mov ecx, esi
call fcn.0040a940
mov ecx, dword [ebp - 0x468]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x470]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40d1d9
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d320
push ecx
push esi
call fcn.0041f6f2
mov ecx, dword [ebp - 0x450]
add esp, 8
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 0
cmp ecx, 0x10
jb 0x40d23b
mov edx, dword [ebp - 0x464]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d231
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d320
push ecx
push edx
call fcn.0041f6f2
add esp, 8
mov edi, dword [ebp - 0x48c]
mov eax, edi
jmp 0x40d366
mov edi, dword [ebp - 0x48c]
xorps xmm0, xmm0
push 5
push str.ERROR
mov ecx, edi
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.004051c0
mov ecx, dword [ebp - 0x470]
test ecx, ecx
je 0x40d2f0
mov edx, dword [ebp - 0x46c]
push ecx
call fcn.0040a940
mov ecx, dword [ebp - 0x468]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x470]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40d2c8
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d320
push ecx
push esi
call fcn.0041f6f2
add esp, 8
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 0
mov ecx, dword [ebp - 0x450]
cmp ecx, 0x10
jb 0x40d241
mov edx, dword [ebp - 0x464]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d326
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d326
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041f6f2
add esp, 8
mov eax, edi
jmp 0x40d366
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041f19c
mov esp, ebp
pop ebp
ret
call fcn.00401620
int3