Function at 0x4073c1
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x48840c
call fcn.004874e0
sub esp, 0x78
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.004076ae
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push str..PhysicalDrive_u
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
xor esi, esi
lea eax, [ebp - 0x84]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x407439
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x407432
push eax
push dword [ebp + 8]
push str.RPDWZR__u_1_error_u
push 0x4c2700
call fcn.004319c7
add esp, 0x10
xor al, al
jmp 0x407660
push ebx
push eax
lea ecx, [ebp - 0x20]
call fcn.00430b0c
push 0x8000
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], esi
call fcn.0043210a
push 0xc
lea eax, [ebp - 0x2c]
push esi
push eax
mov byte [ebp - 4], 1
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov ebx, 0x4c2700
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x14]
call fcn.00407938
add esp, 0x18
cmp eax, esi
jne 0x4074e4
lea ecx, [ebp - 0x44]
call fcn.0042dacc
push dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
push eax
push str.RPDWZR__2__u__u
push ebx
call fcn.004319df
mov ecx, dword [ebp + 8]
add esp, 0x10
cmp ecx, dword [ebp + 0xc]
jbe 0x4074eb
mov eax, dword [ebp - 0x3c]
cmp eax, 0x800000
jae 0x4074d2
add eax, eax
lea ecx, [ebp - 0x44]
push eax
call fcn.004321e4
jmp 0x407471
push dword [ebp + 0xc]
push ecx
push str.Need__8Mb_allocation__RPDWZR____u__u
push ebx
call fcn.004319c7
add esp, 0x10
xor bl, bl
jmp 0x407645
lea ecx, [ebp - 0x44]
call fcn.0042dacc
cmp dword [0x4c1ec8], 0x60002
mov esi, eax
lea eax, [ebp - 0x10]
push dword [esi + 0xc]
sbb bl, bl
push esi
push eax
inc bl
call fcn.004078a6
push dword [esi + 0x10]
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.004078a6
add esp, 0x18
lea ecx, [edi + 4]
push eax
mov byte [ebp - 4], 3
call fcn.00433ebf
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00433d8a
push dword [esi + 0x14]
lea eax, [ebp + 8]
push esi
push eax
call fcn.004078a6
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00433ebf
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00433d8a
test bl, bl
sete al
push eax
lea eax, [ebp + 8]
push dword [esi + 0x18]
push esi
push eax
call fcn.004076da
add esp, 0x10
push eax
lea ecx, [edi + 8]
mov byte [ebp - 4], 5
call fcn.00433ebf
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00433d8a
lea ecx, [ebp - 0x10]
call fcn.0043454e
test eax, eax
jle 0x4075ff
lea ecx, [ebp - 0x10]
call fcn.00435b75
lea esi, [edi + 4]
push eax
mov ecx, esi
call fcn.0040766e
test al, al
jne 0x4075ff
lea eax, [ebp - 0x10]
push 0x4ab6ac
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0043405f
push esi
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 6
push eax
call fcn.00433ff3
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00433ebf
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.00433d8a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00433d8a
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0x700a0
push dword [ebp - 0x14]
call fcn.00407938
add esp, 0x18
test eax, eax
je 0x407623
xor bl, bl
jmp 0x407639
lea ecx, [ebp - 0x44]
call fcn.0042dacc
mov ecx, dword [eax + 0x18]
mov bl, 1
mov dword [edi + 0x10], ecx
mov eax, dword [eax + 0x1c]
mov dword [edi + 0x14], eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00433d8a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00432196
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00430b3a
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret