Function at 0x405350
Capabilities:
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x441ae8
mov eax, dword fs:[0]
push eax
mov eax, 0x1e18
call fcn.0042da40
mov eax, dword [0x45878c]
xor eax, esp
mov dword [esp + 0x1e14], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45878c]
xor eax, esp
push eax
lea eax, [esp + 0x1e2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1e40]
mov dword [esp + 0x14], ecx
xor ebp, ebp
push ebp
lea ecx, [esp + 0x34]
call fcn.00409e30
lea ecx, [esp + 0x30]
mov dword [esp + 0x1e34], ebp
call fcn.00407290
test eax, eax
je 0x4053d5
lea ecx, [esp + 0x30]
mov dword [esp + 0x1e34], 0xffffffff
call fcn.00404f80
xor eax, eax
jmp 0x405b77
push 0xe1
lea eax, [esp + 0x218]
push ebp
push eax
call fcn.0042d490
add esp, 0xc
mov byte [esp + 0x214], 0x45
mov byte [esp + 0x215], 0x53
mov byte [esp + 0x216], 0x55
mov byte [esp + 0x217], 0xff
call fcn.0041068e
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x405425
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
or edi, 0xffffffff
cmp dword [esp + 0x1e3c], ebp
mov byte [esp + 0x1e34], 1
mov dword [esp + 0x18], ebp
jle 0x40563a
lea ebp, [esi + 4]
mov edx, dword [ebp - 4]
test edx, edx
jne 0x40545f
xor eax, eax
jmp 0x40546f
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405464
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00401740
mov ebx, dword [esp + 0x20]
mov esi, dword [ebx - 0xc]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x4054a0
push esi
lea ecx, [esp + 0x24]
call fcn.00401540
mov ebx, dword [esp + 0x20]
lea ecx, [esi + 1]
push ecx
push ebx
call fcn.0042de4b
push eax
call fcn.004010c0
add esp, 0xc
test esi, esi
jl 0x405679
cmp esi, dword [ebx - 8]
jg 0x405679
push str._install
mov dword [ebx - 0xc], esi
push ebx
mov byte [esi + ebx], 0
call fcn.0042d8b2
add esp, 8
test eax, eax
sete al
test al, al
je 0x4055ab
mov eax, dword [ebp]
cmp byte [eax], 0x2d
je 0x40561c
xor edi, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4054f7
sub eax, edx
je 0x40561c
jmp 0x405510
mov edx, dword [ebp]
movzx eax, byte [edx + edi]
mov ecx, dword [esp + 0x14]
push eax
call fcn.00404cc0
mov ecx, dword [ebp]
movzx edx, byte [ecx + edi]
mov ecx, dword [esp + 0x14]
push edx
mov esi, eax
call fcn.00404a80
cmp esi, 0xffffffff
mov ecx, eax
je case.default.0x405548
cmp ecx, 0xffffffff
je case.default.0x405548
sub ecx, 1
cmp esi, 3
ja case.default.0x405548
jmp dword [esi*4 + 0x405ba4]
mov eax, 1
shl eax, cl
or dword [esp + 0x218], eax
jmp case.default.0x405548
mov edx, 1
shl edx, cl
or dword [esp + 0x21c], edx
jmp case.default.0x405548
mov eax, 1
shl eax, cl
or dword [esp + 0x220], eax
jmp case.default.0x405548
mov edx, 1
shl edx, cl
or dword [esp + 0x224], edx
mov eax, dword [ebp]
add edi, 1
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405596
sub eax, edx
cmp edi, eax
jb 0x405510
jmp 0x40561c
push str._password
push ebx
call fcn.0042d8b2
add esp, 8
test eax, eax
sete al
test al, al
je 0x40561c
mov eax, dword [ebp]
cmp byte [eax], 0x2d
je 0x40561c
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00401920
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
call fcn.00408650
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x228]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4055f4
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40561c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 1
add ebp, 4
cmp eax, dword [esp + 0x1e3c]
mov dword [esp + 0x18], eax
jl 0x405454
or edi, 0xffffffff
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040a020
mov edx, dword [esp + 0x1c]
push 0x445678
push edx
mov byte [esp + 0x1e3c], 2
call fcn.0042d8b2
add esp, 8
test eax, eax
setne al
test al, al
je 0x4057c2
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jge 0x405683
push 0x80070057
call fcn.00401150
mov al, byte [eax]
mov byte [esp + 0x18], al
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x2fc]
call fcn.0040e0b0
lea ecx, [esp + 0x2f8]
mov byte [esp + 0x1e34], 3
call fcn.0040e220
test eax, eax
je 0x4057ae
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3bc]
push eax
lea ecx, [esp + 0x2fc]
mov dword [esp + 0x24c], edx
call fcn.0040f5c0
mov edx, dword [esp + 0x15e0]
cmp edx, 0x10
jle 0x40576e
push 0x40
push 0x445d60
push 0x445d2c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x2f8]
mov byte [esp + 0x1e34], 2
call fcn.0040e1d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov edx, edi
lea ecx, [eax + 0xc]
mov byte [esp + 0x1e34], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405734
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov edx, edi
lea ecx, [eax + 0xc]
mov byte [esp + 0x1e34], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405757
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x1e34], edi
call fcn.00404f80
xor eax, eax
jmp 0x405b77
xor eax, eax
test edx, edx
jle 0x4057a2
lea ecx, [esp + 0xfe0]
jmp 0x405780
cmp eax, 0x10
jge 0x405798
mov esi, dword [ecx]
mov dword [esp + eax*4 + 0x250], esi
mov esi, dword [ecx + 8]
mov dword [esp + eax*4 + 0x290], esi
add eax, 1
add ecx, 0xc
cmp eax, edx
jl 0x405780
lea ecx, [esp + 0x2f8]
call fcn.0040e470
lea ecx, [esp + 0x2f8]
mov byte [esp + 0x1e34], 2
call fcn.0040e1d0
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
jge 0x4057d6
push 0x80070057
call fcn.00401150
mov cl, byte [eax]
mov byte [esp + 0x18], cl
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
call fcn.00404a80
cmp eax, edi
mov dword [esp + 0x24c], eax
je 0x40570d
lea ecx, [esp + 0x214]
push ecx
lea ecx, [esp + 0x34]
call fcn.00407010
test eax, eax
jne 0x405841
push 0x40
push 0x445d60
push 0x445d14
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x1e34], 1
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x405728
call fcn.0041068e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40585b
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x1e34], 4
call fcn.0041068e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40588d
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x1e34], 5
call fcn.0041068e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4058bf
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x104
lea ecx, [esp + 0x1c24]
mov bl, 6
push ecx
mov byte [esp + 0x1e3c], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
lea edx, [esp + 0x1d28]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x1c20]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405908
sub eax, edx
push eax
lea eax, [esp + 0x1c24]
push eax
lea ecx, [esp + 0x20]
call fcn.00401740
push 0xd
push str._bootstat.dat
lea ecx, [esp + 0x20]
call fcn.00404c20
lea eax, [esp + 0x1c20]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405940
sub eax, edx
push eax
lea ecx, [esp + 0x1c24]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00401740
push 0xd
push str._bootstat.bak
lea ecx, [esp + 0x2c]
call fcn.00404c20
lea eax, [esp + 0x1d24]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x405977
sub eax, ecx
push eax
lea edx, [esp + 0x1d28]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401740
push 0x14
push str.driversEsudisk.sys
lea ecx, [esp + 0x1c]
call fcn.00404c20
mov eax, dword [esp + 0x14]
push eax
push 0x93
push 0x445cd8
lea ecx, [esp + 0x3c]
call fcn.00407170
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x18]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0xe1
lea ecx, [esp + 0x218]
push ecx
lea ecx, [esp + 0x38]
call fcn.00407b00
push 0xe1
lea edx, [esp + 0x218]
push edx
lea ecx, [esp + 0x38]
call fcn.004088f0
lea eax, [esp + 0x1d24]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x405a02
sub eax, ecx
push eax
lea eax, [esp + 0x1d28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401740
push 0x14
push str.drivers_filepro.sys
lea ecx, [esp + 0x1c]
call fcn.00404c20
mov esi, dword [esp + 0x14]
push esi
push 0xac
push 0x445cd8
lea ecx, [esp + 0x3c]
call fcn.00407170
lea ecx, [esp + 0x28]
call fcn.0040f8b0
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
mov byte [esp + 0x1e34], 7
or ecx, eax
jge 0x405a76
push 0
lea ecx, [esp + 0x18]
call fcn.00401540
mov esi, dword [esp + 0x14]
push 1
push 1
push esi
push str.FILEPRO
lea ecx, [esp + 0x38]
call fcn.0040f8d0
lea ecx, [esp + 0x30]
call fcn.0040bc50
lea ecx, [esp + 0x28]
mov byte [esp + 0x1e34], bl
call fcn.0040f8c0
lea eax, [esi - 0x10]
mov byte [esp + 0x1e34], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ac6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x1e34], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405aea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x1e34], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x1e34], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1e34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x1e34], 0xffffffff
call fcn.00404f80
mov eax, 1
mov ecx, dword [esp + 0x1e2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1e14]
xor ecx, esp
call fcn.0042d47b
add esp, 0x1e24
ret 8