Function at 0x428290
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496b31
mov eax, dword fs:[0]
push eax
sub esp, 0x534
mov eax, dword [0x4d7204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x300], ecx
mov ecx, dword [ebp + 8]
call fcn.00405e20
push eax
push str.new_drive_info
lea eax, [ebp - 0x230]
push eax
call fcn.00419800
mov ecx, eax
call fcn.004136c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x350]
push ecx
call fcn.0042a2f0
add esp, 4
mov dword [ebp - 0x2cc], eax
mov edx, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d0], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2d0]
call fcn.00401da0
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp - 0x2a0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2a0]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 0x291], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x350]
call fcn.00404db0
movzx ecx, byte [ebp - 0x291]
test ecx, ecx
je 0x428414
lea edx, [ebp - 0x378]
push edx
call fcn.0042a2f0
add esp, 4
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2d8]
call fcn.00401da0
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4b21c0
lea edx, [ebp - 0x230]
push edx
push str.new_drive_info:
lea ecx, [ebp - 0x410]
call fcn.00404010
mov dword [ebp - 0x2dc], eax
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x2e0], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2e0]
call fcn.00401990
mov ecx, eax
call fcn.00425740
mov ecx, eax
call fcn.00401990
mov ecx, eax
call fcn.00401a10
push eax
mov ecx, dword [ebp - 0x2a4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2a4]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x410]
call fcn.00405070
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x378]
call fcn.00404db0
lea ecx, [ebp - 0x230]
call fcn.00410ca0
movzx ecx, al
test ecx, ecx
jne 0x428433
call fcn.00428c10
test eax, eax
jne 0x4286a8
lea edx, [ebp - 0x358]
push edx
call fcn.0042a2f0
add esp, 4
mov dword [ebp - 0x2e4], eax
mov eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x2e8], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2e8]
call fcn.00401da0
mov dword [ebp - 0x2c8], eax
mov ecx, dword [ebp - 0x2c8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2c8]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 0x292], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x358]
call fcn.00404db0
movzx ecx, byte [ebp - 0x292]
test ecx, ecx
je 0x428539
lea edx, [ebp - 0x360]
push edx
call fcn.0042a2f0
add esp, 4
mov dword [ebp - 0x330], eax
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x32c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x32c]
call fcn.00401da0
mov dword [ebp - 0x2a8], eax
push str.use_old_drive
lea ecx, [ebp - 0x4a8]
call fcn.00404010
mov dword [ebp - 0x328], eax
mov ecx, dword [ebp - 0x328]
mov dword [ebp - 0x320], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x320]
call fcn.00401990
push eax
mov edx, dword [ebp - 0x2a8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4a8]
call fcn.00405070
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x360]
call fcn.00404db0
mov ecx, dword [ebp + 8]
call fcn.00405e20
push eax
push str.drive_info
lea eax, [ebp - 0x290]
push eax
call fcn.00419800
mov ecx, eax
call fcn.004136c0
mov dword [ebp - 0x31c], eax
mov ecx, dword [ebp - 0x31c]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004130f0
lea ecx, [ebp - 0x290]
call fcn.00404be0
lea edx, [ebp - 0x368]
push edx
call fcn.0042a2f0
add esp, 4
mov dword [ebp - 0x324], eax
mov eax, dword [ebp - 0x324]
mov dword [ebp - 0x2ec], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2ec]
call fcn.00401da0
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x2ac]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2ac]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 0x293], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x368]
call fcn.00404db0
movzx ecx, byte [ebp - 0x293]
test ecx, ecx
je 0x4286a8
lea edx, [ebp - 0x370]
push edx
call fcn.0042a2f0
add esp, 4
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x2f4], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2f4]
call fcn.00401da0
mov dword [ebp - 0x2b0], eax
mov ecx, dword [ebp + 8]
push ecx
push str._product:
lea edx, [ebp - 0x230]
push edx
push str.old_drive_info:
lea ecx, [ebp - 0x540]
call fcn.00404010
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x2fc], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2fc]
call fcn.00401990
mov ecx, eax
call fcn.00425740
mov ecx, eax
call fcn.00401990
mov ecx, eax
call fcn.00401a10
push eax
mov ecx, dword [ebp - 0x2b0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2b0]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x540]
call fcn.00405070
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x370]
call fcn.00404db0
mov dword [ebp - 0x2c4], 0
lea ecx, [ebp - 0x230]
call fcn.00410ca0
movzx ecx, al
test ecx, ecx
je 0x4286c9
jmp 0x428a2b
lea ecx, [ebp - 0x348]
call fcn.00436210
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x230]
push edx
lea ecx, [ebp - 0x348]
call fcn.00436e40
movzx eax, al
test eax, eax
jne 0x428705
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x348]
call fcn.00426bd0
jmp 0x428a2b
call fcn.00428b70
test eax, eax
je 0x42871a
mov dword [ebp - 0x2b4], str.file_path_64
jmp 0x428724
mov dword [ebp - 0x2b4], str.file_path_32
mov ecx, dword [ebp - 0x2b4]
push ecx
lea ecx, [ebp - 0x248]
call fcn.00403750
mov byte [ebp - 4], 0xb
push str.name
lea ecx, [ebp - 0x260]
call fcn.00403750
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x260]
push edx
lea ecx, [ebp - 0x348]
call fcn.00436e20
movzx eax, al
test eax, eax
je 0x428780
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x348]
call fcn.00436e20
movzx edx, al
test edx, edx
jne 0x4287b2
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x260]
call fcn.00404be0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x248]
call fcn.00404be0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x348]
call fcn.00426bd0
jmp 0x428a2b
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x29c]
push edx
mov ecx, dword [ebp - 0x300]
call fcn.00427e40
mov byte [ebp - 4], 0xd
push 0x4b2264
lea ecx, [ebp - 0x2b8]
call fcn.004032e0
mov byte [ebp - 4], 0xe
push 0xfde9
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x298]
push edx
lea ecx, [ebp - 0x348]
call fcn.00436b70
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2b8]
call fcn.004049f0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004696a0
add esp, 0xc
lea ecx, [ebp - 0x298]
call fcn.00405e20
push eax
lea ecx, [ebp - 0x29c]
call fcn.00405e20
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4288b4
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x298]
call fcn.004049f0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x29c]
call fcn.004049f0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x260]
call fcn.00404be0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x248]
call fcn.00404be0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x348]
call fcn.00426bd0
jmp 0x428a2b
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
call fcn.00405510
push 0x4b2268
lea ecx, [ebp - 0x2bc]
call fcn.004032e0
mov byte [ebp - 4], 0x11
push 0xfde9
lea ecx, [ebp - 0x2bc]
push ecx
lea edx, [ebp - 0x260]
push edx
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0x348]
call fcn.00436b70
mov dword [ebp - 0x304], eax
mov ecx, dword [ebp - 0x304]
mov dword [ebp - 0x308], ecx
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x308]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004054f0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x30c]
call fcn.004049f0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2bc]
call fcn.004049f0
mov ecx, dword [ebp + 8]
call fcn.00405e20
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00419800
mov ecx, eax
call fcn.004137b0
mov dword [ebp - 0x310], eax
mov ecx, dword [ebp - 0x310]
mov dword [ebp - 0x314], ecx
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x314]
call fcn.0040fd10
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 8
call fcn.00405510
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x278]
call fcn.00404c30
call fcn.00428c80
test eax, eax
je 0x4289b8
call fcn.0042b080
test eax, eax
je 0x4289b8
mov dword [ebp - 0x2c0], 1
jmp 0x4289c2
mov dword [ebp - 0x2c0], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c0]
mov dword [edx + 0xc], eax
mov dword [ebp - 0x2c4], 1
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x298]
call fcn.004049f0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x29c]
call fcn.004049f0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x260]
call fcn.00404be0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x248]
call fcn.00404be0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x348]
call fcn.00426bd0
xor ecx, ecx
jne 0x4286b2
mov edx, dword [ebp - 0x2c4]
mov dword [ebp - 0x318], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00404be0
mov eax, dword [ebp - 0x318]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ab64
mov esp, ebp
pop ebp
ret 0xc