Function at 0x447250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x159c
call fcn.004f7350
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1438]
push esi
push edi
push 0x408
xorps xmm0, xmm0
mov dword [ebp - 0x1448], 0
mov esi, ecx
movq qword [ebp - 0x1450], xmm0
push 0
push eax
mov dword [ebp - 0x1474], esi
mov dword [ebp - 0x1464], 0
movups xmmword [ebp - 0x1460], xmm0
call fcn.004ff750
add esp, 0xc
lea eax, [ebp - 0x1438]
push 0x204
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1438]
push 0x5c
push eax
call fcn.004fe47b
add esp, 8
test eax, eax
je 0x4472df
xor ecx, ecx
mov word [eax], cx
push 0x56a7e4
lea eax, [ebp - 0x1438]
push 0x204
push eax
call fcn.00535dbd
add esp, 0xc
mov ecx, esi
push ebx
call fcn.00446a70
mov edi, eax
test edi, edi
jne 0x4474d7
push ebx
lea eax, [ebp - 0x146c]
mov dword [ebp - 0x146c], 0x15
push eax
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00441e00
mov edi, eax
test edi, edi
je 0x447342
push edi
push 0x1b5
push str.CSMARTInfo::RecordTECData
push str.Error___s:_d___GetDeviceSerialNumber_err___d
jmp 0x447402
mov eax, dword [ebp - 0x146c]
add eax, eax
cmp eax, 0x2a
jae 0x447c33
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 0x447360
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 - 0x1438]
push 0x204
push eax
call fcn.00535dbd
push str..bin
lea eax, [ebp - 0x1438]
push 0x204
push eax
call fcn.00535dbd
lea eax, [ebp - 0x1438]
push 0
push eax
call fcn.0052ad4b
add esp, 0x28
test eax, eax
je 0x447730
xor eax, eax
mov word [ebp - 0x1450], 0x4d53
push ebx
mov ecx, esi
mov dword [ebp - 0x146c], eax
mov dword [ebp - 0x144e], 0x14c44
call fcn.00446a70
test eax, eax
jne 0x447422
cmp dword [esi + ebx*4 + 0x134b8], eax
jne 0x447422
mov edi, 0xffffb1df
push edi
push 0x1cf
push str.CSMARTInfo::RecordTECData
push str.Error___s:_d___error_code:__d
lea eax, [ebp - 0x1030]
push eax
call fcn.00438870
lea eax, [ebp - 0x1030]
push eax
call fcn.004397c0
add esp, 0x18
jmp 0x4474d7
inc dword [ebp - 0x1448]
lea eax, [ebp - 0x1438]
push 0x5c3ee8
push eax
call fcn.0052e599
mov edi, eax
add esp, 8
mov dword [ebp - 0x1470], edi
test edi, edi
jne 0x44746c
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 0x1da
jmp 0x4477a5
push edi
push 1
lea eax, [ebp - 0x1450]
push 0xc
push eax
call fcn.00528555
add esp, 0x10
cmp eax, 1
je 0x4474ec
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
push 0x1e3
push str.CSMARTInfo::RecordTECData
lea eax, [ebp - 0x1030]
push str.Error___s:_d___error_code:__d___s_
push eax
call fcn.00438870
lea eax, [ebp - 0x1030]
push eax
call fcn.004397c0
add esp, 0x1c
mov edi, 0xffffec76
push dword [ebp - 0x1470]
call fcn.0052767d
add esp, 4
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 4
lea eax, [ebx + ebx*2]
lea ecx, [esi + eax*8]
movzx eax, byte [ecx + 0x1ac]
mov byte [ebp - 0x1454], al
movzx eax, byte [ecx + 0x1ad]
mov ecx, esi
push ebx
mov byte [ebp - 0x1453], al
call fcn.00442d60
mov dword [ebp - 0x1460], eax
lea eax, [ebp - 0x147c]
push eax
call fcn.0052e9ce
push edi
push 1
mov dword [ebp - 0x145c], eax
lea eax, [ebp - 0x1460]
push 0x10
push eax
mov dword [ebp - 0x1458], edx
call fcn.00528555
add esp, 0x14
cmp eax, 1
je 0x447594
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffec76
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
push 0x1f4
push str.CSMARTInfo::RecordTECData
lea eax, [ebp - 0x1030]
push str.Error___s:_d___error_code:__d___s_
push eax
call fcn.00438870
lea eax, [ebp - 0x1030]
push eax
call fcn.004397c0
add esp, 0x1c
jmp 0x4474c9
xor edi, edi
mov dword [ebp - 0x1468], edi
nop dword [eax]
push ebx
mov ecx, esi
call fcn.00446a70
test eax, eax
jne 0x4475b3
mov eax, dword [esi + ebx*4 + 0x134b8]
cmp edi, eax
jge 0x4476d9
push 0x120
lea eax, [ebp - 0x159c]
mov word [ebp - 0x143c], 0
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x1444], xmm0
call fcn.004ff750
mov edx, dword [ebp - 0x1468]
add esp, 0xc
cmp ebx, 0x63
ja 0x44761a
mov eax, ebx
lea edi, [ebp - 0x159c]
shl eax, 4
mov ecx, 0x48
sub eax, ebx
lea eax, [edx + eax*2]
lea eax, [eax + eax*8]
shl eax, 5
add eax, 0x13648
add esi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1474]
cmp dword [ebp - 0x148c], 0
je 0x447645
mov eax, dword [ebp - 0x149c]
mov dword [ebp - 0x1442], eax
mov ax, word [ebp - 0x1498]
mov byte [ebp - 0x1444], dl
mov word [ebp - 0x143e], ax
jmp 0x447686
movzx eax, byte [ebp - 0x149c]
mov byte [ebp - 0x1444], al
movzx eax, byte [ebp - 0x1499]
mov byte [ebp - 0x1443], al
mov eax, dword [ebp - 0x1497]
mov dword [ebp - 0x1442], eax
mov ax, word [ebp - 0x1493]
mov word [ebp - 0x143e], ax
movzx eax, byte [ebp - 0x1498]
mov byte [ebp - 0x143c], al
push dword [ebp - 0x1470]
lea eax, [ebp - 0x1444]
push 1
push 0xa
push eax
call fcn.00528555
add esp, 0x10
cmp eax, 1
jne 0x4476b5
inc dword [ebp - 0x1468]
mov edi, dword [ebp - 0x1468]
jmp 0x4475a0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffec76
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
push 0x210
jmp 0x44756a
push dword [ebp - 0x1470]
lea eax, [ebp - 0x1464]
mov dword [ebp - 0x1464], 0x534d444c
push 1
push 4
push eax
call fcn.00528555
add esp, 0x10
cmp eax, 1
je 0x447725
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffec76
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
push 0x220
jmp 0x44756a
mov edi, dword [ebp - 0x146c]
jmp 0x4474c9
lea eax, [ebp - 0x1438]
push 6
push eax
call fcn.0052ad4b
add esp, 8
test eax, eax
je 0x447766
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffec13
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
push 0x230
jmp 0x4477a5
lea eax, [ebp - 0x1438]
push 0x56ab28
push eax
call fcn.0052e599
mov edi, eax
add esp, 8
mov dword [ebp - 0x1470], edi
test edi, edi
jne 0x4477cf
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 0x239
push str.CSMARTInfo::RecordTECData
lea eax, [ebp - 0x1030]
push str.Error___s:_d___error_code:__d___s_
push eax
call fcn.00438870
lea eax, [ebp - 0x1030]
push eax
call fcn.004397c0
add esp, 0x1c
jmp 0x4474d7
push edi
push 1
lea eax, [ebp - 0x1450]
push 0xc
push eax
call fcn.0052fa66
add esp, 0x10
cmp eax, 1
je 0x44780c
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 0x243
jmp 0x44756a
cmp byte [ebp - 0x1450], 0x53
je 0x44784a
cmp byte [ebp - 0x144f], 0x4d
je 0x44784a
cmp byte [ebp - 0x144e], 0x44
je 0x44784a
cmp byte [ebp - 0x144d], 0x4c
je 0x44784a
cmp word [ebp - 0x144c], 1
je 0x44784a
mov edi, 0xffffb1de
push edi
push 0x24c
jmp 0x447918
push edi
call fcn.00536f24
push 2
push 0xfffffffffffffffc
push edi
mov dword [ebp - 0x146c], eax
call fcn.00529eba
add esp, 0x10
test eax, eax
je 0x44788b
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 0x256
jmp 0x44756a
push edi
push 1
lea eax, [ebp - 0x1464]
push 4
push eax
call fcn.0052fa66
add esp, 0x10
cmp eax, 1
je 0x4478c8
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 0x25f
jmp 0x44756a
cmp byte [ebp - 0x1464], 0x4c
je 0x4478f9
cmp byte [ebp - 0x1463], 0x44
je 0x4478f9
cmp byte [ebp - 0x1462], 0x4d
je 0x4478f9
cmp byte [ebp - 0x1461], 0x53
je 0x4478f9
mov edi, 0xffffb1dd
push edi
push 0x267
jmp 0x447918
push ebx
mov ecx, esi
call fcn.00442d60
push ebx
mov ecx, esi
call fcn.00442d60
test eax, eax
jne 0x447942
mov edi, 0xffffb1df
push edi
push 0x272
push str.CSMARTInfo::RecordTECData
lea eax, [ebp - 0x1030]
push str.Error___s:_d___error_code:__d
push eax
call fcn.00438870
lea eax, [ebp - 0x1030]
push eax
call fcn.004397c0
add esp, 0x18
jmp 0x4474c9
mov eax, dword [ebp - 0x146c]
inc dword [ebp - 0x1448]
add eax, 0xfffffffc
push 0
push eax
push edi
call fcn.00529eba
add esp, 0xc
test eax, eax
je 0x447985
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 0x27d
jmp 0x44756a
push edi
push 1
lea eax, [ebp - 0x1448]
push 4
push eax
call fcn.00528555
add esp, 0x10
cmp eax, 1
je 0x4479c2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffec76
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
push 0x286
jmp 0x44756a
push 2
push 0xfffffffffffffffc
push edi
call fcn.00529eba
add esp, 0xc
mov dword [ebp - 0x146c], eax
test eax, eax
je 0x4479fd
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 0x28f
jmp 0x44756a
lea eax, [ebx + ebx*2]
lea ecx, [esi + eax*8]
movzx eax, byte [ecx + 0x1ac]
mov byte [ebp - 0x1454], al
movzx eax, byte [ecx + 0x1ad]
mov ecx, esi
push ebx
mov byte [ebp - 0x1453], al
call fcn.00442d60
mov dword [ebp - 0x1460], eax
lea eax, [ebp - 0x147c]
push eax
call fcn.0052e9ce
push edi
push 1
mov dword [ebp - 0x145c], eax
lea eax, [ebp - 0x1460]
push 0x10
push eax
mov dword [ebp - 0x1458], edx
call fcn.00528555
add esp, 0x14
cmp eax, 1
je 0x447a80
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffec76
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
push 0x29f
jmp 0x44756a
xor edi, edi
mov dword [ebp - 0x1468], edi
push ebx
mov ecx, esi
call fcn.00446a70
test eax, eax
jne 0x447a9b
mov eax, dword [esi + ebx*4 + 0x134b8]
cmp edi, eax
jge 0x447be5
push 0x120
lea eax, [ebp - 0x159c]
mov word [ebp - 0x143c], 0
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x1444], xmm0
call fcn.004ff750
mov edx, dword [ebp - 0x1468]
add esp, 0xc
cmp ebx, 0x63
ja 0x447b02
invalid