Function at 0x4d2950
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x23af8
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
or eax, 0xffffffff
mov dword [ebp - 0x23ad4], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x23ae0], eax
lea eax, [ebp - 0x23ac8]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x23ad8], ebx
mov dword [ebp - 0x23ae8], edi
call fcn.004ba480
push 1
push edi
call fcn.0042a460
add esp, 0xc
test eax, eax
je 0x4d29d7
push ebx
push str.RESTORE_HEADER_NOT_FOR_SYS_DEVICE
call fcn.004193e0
add esp, 8
cmp eax, 6
jne 0x4d29c5
push ebx
call fcn.004cd1b0
add esp, 4
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push edi
call fcn.00429ee0
add esp, 4
test eax, eax
je 0x4d2a04
push ebx
push str.DISMOUNT_FIRST
call fcn.00419c20
add esp, 8
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push edi
call fcn.0042ad90
add esp, 4
test eax, eax
jne 0x4d2a2c
push ebx
call fcn.00417c00
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push esi
push 0
lea eax, [ebp - 0x22a20]
mov dword [ebp - 0x22a20], 0
push eax
push ebx
mov dword [ebp - 0x22a1c], str.HEADER_RESTORE_EXTERNAL_INTERNAL
mov dword [ebp - 0x22a18], str.HEADER_RESTORE_INTERNAL
mov dword [ebp - 0x22a14], str.HEADER_RESTORE_EXTERNAL
mov dword [ebp - 0x22a10], str.IDCANCEL
mov dword [ebp - 0x22a0c], 0
call fcn.0040d490
add esp, 0xc
sub eax, 1
je 0x4d2a9c
sub eax, 1
je 0x4d2a98
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x4d2aa1
mov esi, 1
mov dword [ebp - 0x23ae4], esi
call fcn.004bff10
test eax, eax
jne 0x4d2ab8
lea esi, [eax + 0x1e]
jmp 0x4d2bb1
push 0x1058
lea eax, [ebp - 0x23ac0]
push 0
push eax
call fcn.004e46b0
add esp, 0xc
call fcn.00421850
call fcn.00421690
test esi, esi
je 0x4d2cdd
push 0
lea eax, [ebp - 0x23ac8]
push eax
lea eax, [ebp - 0x22a68]
push eax
push edi
push ebx
call fcn.00491670
add esp, 0x14
test eax, eax
je 0x4d2baf
call fcn.00421850
cmp dword [ebp - 0x23ac8], 0
je 0x4d2b26
push ebx
push dword [ebp - 0x23ac4]
lea eax, [ebp - 0x22a68]
push eax
call fcn.004b9c20
add esp, 0xc
push 1
push dword [0x55932c]
lea eax, [ebp - 0x22a68]
push 1
push eax
lea eax, [ebp - 0x23ac0]
push edi
push eax
call fcn.004ce7f0
add esp, 0x18
mov esi, eax
call fcn.00421690
cmp esi, 3
jne 0x4d2b8b
movzx eax, byte [ebp - 0x22a23]
push edi
push eax
push ebx
call fcn.00417d50
call fcn.00421690
push 0
lea eax, [ebp - 0x23ac8]
push eax
lea eax, [ebp - 0x22a68]
push eax
push edi
push ebx
call fcn.00491670
add esp, 0x20
test eax, eax
jne 0x4d2b02
jmp 0x4d2baf
test esi, esi
jne 0x4d2bb1
mov eax, dword [ebp - 0x22ab4]
cmp dword [eax + 0x443c], esi
je 0x4d2c69
push ebx
push str.VOLUME_HAS_NO_BACKUP_HEADER
call fcn.00419a00
add esp, 8
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
call fcn.00421690
cmp dword [ebp - 0x23ae4], 0
jne 0x4d2bec
mov eax, dword [ebp - 0x23ad4]
test eax, eax
je 0x4d2bda
push eax
call fcn.004b8120
add esp, 4
mov eax, dword [ebp - 0x23ae0]
cmp eax, 0xffffffff
je 0x4d2bec
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x23ac0]
push eax
call fcn.004ce710
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
test esi, esi
je 0x4d2c15
push esi
push dword [ebp - 0x23ad8]
call fcn.00417830
add esp, 8
lea eax, [ebp - 0x22a68]
mov ecx, 0x48
mov edi, ecx
mov edx, eax
mov byte [edx], 0
lea edx, [edx + 1]
sub edi, 1
jne 0x4d2c24
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4d2c30
lea eax, [ebp - 0x23ac8]
push eax
call fcn.004ba4b0
push 0
call fcn.004c09d0
add esp, 8
call fcn.00421690
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x22a68]
push ecx
push eax
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.004d2880
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4d2bb1
mov eax, dword [ebp - 0x22ab4]
lea ecx, [ebp - 0x204]
push ecx
mov eax, dword [eax + 0x29a0]
neg eax
sbb eax, eax
and eax, 0x10000
cdq
add eax, dword [ebp - 0x22a78]
adc edx, dword [ebp - 0x22a74]
push edx
push eax
push dword [ebp - 0x22aac]
push dword [ebp - 0x22ab0]
call fcn.004c9640
add esp, 0x14
test eax, eax
jne 0x4d30b9
lea esi, [eax + 1]
jmp 0x4d2bb1
push edi
push str.CONFIRM_VOL_HEADER_RESTORE
call fcn.004bb8b0
add esp, 4
push eax
lea eax, [ebp - 0x2a08]
push eax
call fcn.004054c0
lea eax, [ebp - 0x2a08]
push ebx
push eax
call fcn.00419670
add esp, 0x14
cmp eax, 7
je 0x4d2baf
push 0
push 0
push dword [0x559304]
lea eax, [ebp - 0xa08]
push eax
push str.OPEN_TITLE
push ebx
call fcn.00404000
add esp, 0x18
test eax, eax
je 0x4d2baf
call fcn.00421850
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0xa08]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x23ae0], eax
cmp eax, 0xffffffff
jne 0x4d2d6e
mov esi, 1
jmp 0x4d2bb1
lea ecx, [ebp - 0x23af8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
jne 0x4d2d88
lea esi, [eax + 1]
jmp 0x4d2bb1
push 1
push dword [0x55932c]
lea eax, [ebp - 0x23ac0]
push 1
push 0
push edi
push eax
call fcn.004ce7f0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4d2bb1
mov eax, dword [ebp - 0x22aa8]
mov dword [ebp - 0x23ad0], eax
mov eax, dword [ebp - 0x22aa4]
mov dword [ebp - 0x23acc], eax
lea eax, [ebp - 0x23af0]
push esi
push eax
push 0x20000
lea eax, [ebp - 0x22a08]
push eax
mov eax, dword [ebp - 0x23ae0]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4d2df3
lea esi, [eax + 1]
jmp 0x4d2bb1
mov ecx, dword [ebp - 0x23af8]
xor edx, edx
cmp dword [ebp - 0x23af0], ecx
jne 0x4d30d4
mov eax, dword [ebp - 0x23af4]
cmp edx, eax
jne 0x4d30d4
cmp ecx, 0x400
jne 0x4d2e2d
test eax, eax
jne 0x4d2e2d
mov dword [ebp - 0x23adc], 1
jmp 0x4d2e47
cmp ecx, 0x20000
jne 0x4d30c9
test eax, eax
jne 0x4d30c9
mov dword [ebp - 0x23adc], edx
call fcn.00421690
push 0
lea eax, [ebp - 0x23ac8]
push eax
lea eax, [ebp - 0x22a68]
push eax
push str.ENTER_HEADER_BACKUP_PASSWORD
push ebx
call fcn.004917b0
add esp, 0x14
test eax, eax
je 0x4d2baf
mov esi, 0x200
call fcn.00421850
cmp dword [ebp - 0x23ac8], 0
je 0x4d2e9b
push ebx
push dword [ebp - 0x23ac4]
lea eax, [ebp - 0x22a68]
push eax
call fcn.004b9c20
add esp, 0xc
xor ebx, ebx
xor edi, edi
jmp 0x4d2ea6
mov esi, 0x200
cmp edi, 1
jne 0x4d2ebc
cmp dword [ebp - 0x23adc], 0
mov eax, 0x10000
cmovne eax, esi
add ebx, eax
push 0
push 0
lea eax, [ebp - 0x23ad4]
push eax
lea eax, [ebp - 0x22a68]
push eax
lea eax, [ebp - 0x22a08]
add eax, ebx
push eax
push 0
call fcn.004c8cc0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4d2eed
inc edi
cmp edi, 1
jle 0x4d2ea1
cmp esi, 3
jne 0x4d2f41
push dword [ebp - 0x23ae8]
movzx eax, byte [ebp - 0x22a23]
mov ebx, dword [ebp - 0x23ad8]
push eax
push ebx
call fcn.00417d50
call fcn.00421690
push 0
lea eax, [ebp - 0x23ac8]
push eax
lea eax, [ebp - 0x22a68]
push eax
push str.ENTER_HEADER_BACKUP_PASSWORD
push ebx
call fcn.004917b0
add esp, 0x20
mov esi, 0x200
test eax, eax
jne 0x4d2e77
jmp 0x4d2baf
test esi, esi
jne 0x4d2bb1
mov eax, dword [ebp - 0x23ad4]
mov ecx, dword [eax + 0x29a0]
cmp dword [ebp - 0x23adc], esi
je 0x4d2f9d
mov edx, dword [ebp - 0x23ac4]
mov esi, dword [ebp - 0x23ac8]
test ecx, ecx
je 0x4d2f84
mov edi, dword [ebp - 0x23ad0]
mov ebx, dword [ebp - 0x23acc]
sub edi, 0x600
sbb ebx, 0
jmp 0x4d2fce
xorps xmm0, xmm0
movlpd qword [ebp - 0x23aec], xmm0
mov ebx, dword [ebp - 0x23ae8]
mov edi, dword [ebp - 0x23aec]
jmp 0x4d2fce
mov esi, dword [ebp - 0x23ad0]
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x10000
cdq
mov ebx, edx
mov edx, dword [ebp - 0x23acc]
mov edi, eax
test ecx, ecx
je 0x4d2fc5
sub esi, 0x10000
jmp 0x4d2fcb
sub esi, 0x20000
sbb edx, 0
add edi, dword [ebp - 0x22a78]
adc ebx, dword [ebp - 0x22a74]
add esi, dword [ebp - 0x22a78]
mov dword [ebp - 0x23ad0], esi
adc edx, dword [ebp - 0x22a74]
mov dword [ebp - 0x23acc], edx
call fcn.00421850
push 0
lea eax, [ebp - 0x22a68]
push eax
push dword [ebp - 0x23ad4]
lea eax, [ebp - 0x22a08]
push 0
push eax
call fcn.004d2880
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4d2bb1
lea eax, [ebp - 0x22a08]
push eax
push ebx
push edi
push dword [ebp - 0x22aac]
push dword [ebp - 0x22ab0]
call fcn.004c9640
add esp, 0x14
test eax, eax
jne 0x4d304a
lea esi, [eax + 1]
jmp 0x4d2bb1
mov eax, dword [ebp - 0x23ad4]
cmp dword [eax + 0x443c], 0
jne 0x4d30b3
push 0
lea ecx, [ebp - 0x22a68]
push ecx
push eax
lea eax, [ebp - 0x22a08]
push 0
push eax
call fcn.004d2880
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4d2bb1
lea eax, [ebp - 0x22a08]
push eax
mov eax, dword [ebp - 0x23acc]
push eax
mov eax, dword [ebp - 0x23ad0]
push eax
push dword [ebp - 0x22aac]
push dword [ebp - 0x22ab0]
call fcn.004c9640
add esp, 0x14
test eax, eax
jne 0x4d30b3
lea esi, [eax + 1]
jmp 0x4d2bb1
mov ebx, dword [ebp - 0x23ad8]
push ebx
push str.VOL_HEADER_RESTORED
call fcn.00419b10
jmp 0x4d2bac
push ebx
push str.HEADER_BACKUP_SIZE_INCORRECT
jmp 0x4d2ba7
mov esi, 7
jmp 0x4d2bb1