Function at 0x445b40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x147c
call fcn.004f7350
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov edx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x1478], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x147c], eax
lea eax, [ebp - 0x438]
push 0x204
push eax
mov dword [ecx], 0
push 0
mov dword [ebp - 0x1470], ecx
mov dword [ebp - 0x1474], edx
movq qword [ebp - 0x1444], xmm0
mov dword [ebp - 0x143c], 0
mov dword [ebp - 0x146c], 0
mov dword [edx], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x445bd5
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret 0x1c
lea eax, [ebp - 0x438]
push 0x5c
push eax
call fcn.004fe47b
add esp, 8
test eax, eax
je 0x445bef
xor ecx, ecx
mov word [eax], cx
push esi
push edi
push 0x56a7e4
lea eax, [ebp - 0x438]
push 0x204
push eax
call fcn.00535dbd
mov esi, dword [ebp + 0x20]
add esp, 0xc
mov ecx, ebx
push esi
call fcn.00446a70
mov edi, eax
test edi, edi
jne 0x445dae
push esi
lea eax, [ebp - 0x1464]
mov dword [ebp - 0x1464], 0x15
push eax
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
call fcn.00441e00
mov esi, eax
test esi, esi
je 0x445c82
push esi
push 0x3d7
push str.CSMARTInfo::GetTECDataAtIndex
lea eax, [ebp - 0x1438]
push str.Error___s:_d___GetDeviceSerialNumber_err___d
push eax
call fcn.00438870
lea eax, [ebp - 0x1438]
push eax
call fcn.004397c0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp - 0x1464]
add eax, eax
cmp eax, 0x2a
jae 0x446159
xor ecx, ecx
mov word [ebp + eax - 0x30], cx
lea ecx, [ebp - 0x30]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445ca0
sub ecx, edx
lea eax, [ebp - 0x30]
sar ecx, 1
push ecx
push eax
call fcn.00449580
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x438]
push 0x204
push eax
call fcn.00535dbd
push str..bin
lea eax, [ebp - 0x438]
push 0x204
push eax
call fcn.00535dbd
lea eax, [ebp - 0x438]
push 0
push eax
call fcn.0052ad4b
add esp, 0x28
test eax, eax
je 0x445d1a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffb1dc
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
push 0x3e8
jmp 0x445d89
lea eax, [ebp - 0x438]
push 4
push eax
call fcn.0052ad4b
add esp, 8
test eax, eax
je 0x445d50
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffec12
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
push 0x3f1
jmp 0x445d89
lea eax, [ebp - 0x438]
push 0x5bf29c
push eax
call fcn.0052e599
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x445dc3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffec77
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
push 0x3fa
push str.CSMARTInfo::GetTECDataAtIndex
lea eax, [ebp - 0x1438]
push str.Error___s:_d___error_code:__d___s_
push eax
call fcn.00438870
lea eax, [ebp - 0x1438]
push eax
call fcn.004397c0
add esp, 0x1c
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f66cd
mov esp, ebp
pop ebp
ret 0x1c
push ebx
push 1
lea eax, [ebp - 0x1444]
push 0xc
push eax
call fcn.0052fa66
add esp, 0x10
cmp eax, 1
je 0x445e00
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffec77
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
push 0x404
jmp 0x445eb6
cmp byte [ebp - 0x1444], 0x53
je 0x445e3e
cmp byte [ebp - 0x1443], 0x4d
je 0x445e3e
cmp byte [ebp - 0x1442], 0x44
je 0x445e3e
cmp byte [ebp - 0x1441], 0x4c
je 0x445e3e
cmp word [ebp - 0x1440], 1
je 0x445e3e
mov edi, 0xffffb1de
push edi
push 0x40d
jmp 0x445f15
push ebx
call fcn.00536f24
push 2
push 0xfffffffffffffffc
push ebx
mov dword [ebp - 0x1468], eax
call fcn.00529eba
mov edi, eax
add esp, 0x10
test edi, edi
je 0x445e7e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffebaf
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
push 0x417
jmp 0x445eb6
push ebx
push 1
lea eax, [ebp - 0x146c]
push 4
push eax
call fcn.0052fa66
add esp, 0x10
cmp eax, 1
je 0x445ee9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffec75
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
push 0x420
push str.CSMARTInfo::GetTECDataAtIndex
lea eax, [ebp - 0x1438]
push str.Error___s:_d___error_code:__d___s_
push eax
call fcn.00438870
lea eax, [ebp - 0x1438]
push eax
call fcn.004397c0
add esp, 0x1c
push ebx
call fcn.0052767d
add esp, 4
jmp 0x445dae
mov eax, dword [ebp - 0x146c]
cmp al, 0x4c
je 0x445f48
cmp ah, 0x44
je 0x445f48
cmp byte [ebp - 0x146a], 0x4d
je 0x445f48
cmp byte [ebp - 0x1469], 0x53
je 0x445f48
mov edi, 0xffffb1dd
push edi
push 0x428
push str.CSMARTInfo::GetTECDataAtIndex
lea eax, [ebp - 0x1438]
push str.Error___s:_d___error_code:__d
push eax
call fcn.00438870
lea eax, [ebp - 0x1438]
push eax
call fcn.004397c0
add esp, 0x18
push ebx
call fcn.0052767d
add esp, 4
jmp 0x445dae
cmp dword [ebp - 0x143c], 0
mov dword [ebp - 0x1464], 0
jbe 0x44614b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1468]
nop dword [eax + eax]
push 0
push ecx
push ebx
call fcn.00529eba
mov edi, eax
add esp, 0xc
test edi, edi
je 0x445f9d
mov edi, 0xffffebaf
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
push 0x434
jmp 0x445fd9
push ebx
push 1
lea eax, [ebp - 0x1460]
xorps xmm0, xmm0
push 0x10
push eax
movups xmmword [ebp - 0x1460], xmm0
call fcn.0052fa66
add esp, 0x10
cmp eax, 1
je 0x446009
mov edi, 0xffffec75
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
push 0x43f
push str.CSMARTInfo::GetTECDataAtIndex
lea eax, [ebp - 0x1438]
push str.Error___s:_d___error_code:__d___s_
push eax
call fcn.00438870
lea eax, [ebp - 0x1438]
push eax
call fcn.004397c0
mov ecx, dword [ebp - 0x1468]
add esp, 0x1c
jmp 0x446132
mov eax, dword [ebp + 0x18]
cmp dword [ebp - 0x1464], eax
jne 0x446117
xor esi, esi
cmp dword [ebp - 0x1460], esi
jbe 0x446111
push ebx
push 1
lea eax, [ebp - 0x1450]
mov word [ebp - 0x1448], 0
xorps xmm0, xmm0
push 0xa
push eax
movq qword [ebp - 0x1450], xmm0
call fcn.0052fa66
add esp, 0x10
cmp eax, 1
je 0x44609b
mov edi, 0xffffec75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043ddd0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44d
push str.CSMARTInfo::GetTECDataAtIndex
lea eax, [ebp - 0x1438]
push str.Error___s:_d___error_code:__d___s_
push eax
call fcn.00438870
lea eax, [ebp - 0x1438]
push eax
call fcn.004397c0
add esp, 0x1c
jmp 0x4460a7
movzx eax, byte [ebp - 0x1450]
cmp eax, dword [ebp + 0x1c]
je 0x4460b6
inc esi
cmp esi, dword [ebp - 0x1460]
jb 0x446026
jmp 0x446111
mov edx, dword [ebp - 0x1470]
mov ecx, dword [ebp - 0x1458]
mov eax, dword [ebp - 0x145c]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x1474]
mov dword [edx], eax
movzx eax, byte [ebp - 0x144f]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x1478]
movzx eax, byte [ebp - 0x1448]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x147c]
mov eax, dword [ebp - 0x144e]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx], eax
mov ax, word [ebp - 0x144a]
mov word [ecx + 4], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x1460]
mov ecx, dword [ebp - 0x1468]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*2]
add ecx, 0x10
mov dword [ebp - 0x1468], ecx
mov eax, dword [ebp - 0x1464]
inc eax
mov dword [ebp - 0x1464], eax
cmp eax, dword [ebp - 0x143c]
jb 0x445f70
push ebx
call fcn.0052767d
add esp, 4
jmp 0x445dae
call fcn.004f67fd
int3