Function at 0x45f9f1
Capabilities:
Check if file exists
Get common file path
Get disk information
Hide graphical window

Disassembly:
push ebp
sub esp, 0x210
lea ebp, [esp - 4]
mov eax, dword [0x4e97d0]
xor eax, ebp
mov dword [ebp + 0x210], eax
push 0x28
mov eax, 0x4ba2ea
call fcn.00485421
mov esi, dword [ebp + 0x21c]
mov eax, dword [esi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x45fa2f
push 2
pop eax
jmp 0x45fd97
cmp ecx, 0x80
jle 0x45fa3b
push 8
jmp 0x45fa29
cmp ecx, 3
jge 0x45fa48
xor eax, eax
inc eax
jmp 0x45fd97
cmp ecx, 1
jge 0x45fa57
push 0x80070057
call fcn.0040dfb0
movzx edx, word [eax + 2]
push 0x3a
pop ebx
cmp dx, bx
jne 0x45fa72
cmp ecx, 2
jl 0x45fa4d
movzx eax, word [eax + 4]
cmp ax, 0x5c
jne 0x45fa40
xor edi, edi
test ecx, ecx
jle 0x45fabf
push edi
mov ecx, esi
call fcn.0042e237
movzx eax, ax
cmp ax, bx
jne 0x45fa8d
cmp edi, 1
jne 0x45fae6
cmp ax, 0x2a
je 0x45fae6
cmp ax, 0x3f
je 0x45fae6
cmp ax, 0x22
je 0x45fae6
cmp ax, 0x3c
je 0x45fae6
cmp ax, 0x3e
je 0x45fae6
cmp ax, 0x7c
je 0x45fae6
cmp ax, 0x2f
je 0x45fae6
mov eax, dword [esi]
inc edi
cmp edi, dword [eax - 0xc]
jl 0x45fa78
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, 4
jge 0x45faed
xor edi, edi
inc edi
cmp ecx, edi
jle 0x45fadf
jl 0x45fa4d
movzx edx, word [eax + 2]
cmp dx, bx
je 0x45faed
mov eax, edi
jmp 0x45fd97
push 7
jmp 0x45fa29
cmp ecx, 2
jl 0x45fb08
cmp ecx, 1
jl 0x45fa4d
movzx edx, word [eax + 2]
cmp dx, bx
jne 0x45fa40
cmp ecx, 1
jle 0x45fb52
mov ecx, dword [0x4c22ac]
mov dword [ebp + 0x208], ecx
mov ecx, dword [0x4c22b0]
mov dword [ebp + 0x20c], ecx
cmp dword [eax - 0xc], 0
jl 0x45fa4d
mov ax, word [eax]
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x45fb52
push 9
jmp 0x45fa29
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00484550
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push dword [esi]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
test eax, eax
jne 0x45fc19
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
call fcn.0045cc5c
test eax, eax
je 0x45fbe9
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x45fa4d
movzx eax, word [eax]
push ecx
mov ecx, esp
mov dword [ebp + 0x20c], esp
push 1
push eax
call fcn.0045e782
mov ecx, ebx
call fcn.0045ec16
test eax, eax
je 0x45fbe9
push 0
push 0x83
call fcn.004473d5
pop ecx
pop ecx
push 5
push dword [ebx + 0xb97]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xc
jmp 0x45fa29
push 0
push dword [ebx + 0xb97]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x45fa4d
movzx eax, word [eax]
push eax
mov ecx, ebx
call fcn.0045ccb7
test eax, eax
je 0x45fc2d
push 0xd
jmp 0x45fa29
mov eax, dword [ebp - 0x14]
push 0
push dword [eax + 0xb97]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [ebp - 0x14]
call fcn.0046d372
test eax, eax
jne 0x45fd06
mov edi, 0x4c5604
push edi
lea ecx, [ebp - 0x10]
call fcn.0040b680
mov eax, dword [ebp - 0x10]
push dword [eax - 0xc]
and dword [ebp - 4], 0
lea eax, [ebp + 0x20c]
push eax
mov ecx, esi
call fcn.00426a58
lea ecx, [ebp + 0x20c]
mov byte [ebp - 4], 1
call fcn.0042803c
lea ecx, [ebp - 0x10]
call fcn.0042803c
push dword [ebp - 0x10]
lea ecx, [ebp + 0x20c]
call fcn.004266fb
test eax, eax
je 0x45fcd6
push edi
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0041afb8
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov ecx, dword [ebp - 0x18]
test eax, eax
setne bl
add ecx, 0xfffffff0
call fcn.0040dd20
test bl, bl
je 0x45fce6
push 0xa
mov ecx, dword [ebp + 0x20c]
pop esi
add ecx, 0xfffffff0
call fcn.0040dd20
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040dd20
mov eax, esi
jmp 0x45fd97
push esi
mov ecx, ebx
call fcn.0045d292
test eax, eax
jne 0x45fce9
push 0xb
jmp 0x45fcb5
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x20c]
add ecx, 0xfffffff0
call fcn.0040dd20
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.0040dd20
lea ecx, [ebp - 0x34]
call fcn.0042ecb6
push dword [esi]
mov dword [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45fd5e
push ecx
mov dword [ebp - 0x18], esp
mov ecx, esp
push esi
call fcn.004198bb
lea ecx, [ebp - 0x34]
call fcn.0042f326
test eax, eax
je 0x45fd6f
cmp eax, 0x50
je 0x45fd5e
cmp eax, 0xb7
je 0x45fd5e
push 5
pop esi
cmp eax, esi
jne 0x45fd59
lea ecx, [ebp - 0x34]
call fcn.0042f2d0
jmp 0x45fccf
xor esi, esi
inc esi
jmp 0x45fd4c
push esi
mov ecx, ebx
call fcn.0045d9fc
test eax, eax
jne 0x45fd6f
push 5
pop esi
jmp 0x45fd4c
mov eax, dword [0x4ec6b0]
mov esi, dword [esi]
shl eax, 0x14
cdq
push edx
push eax
push esi
call fcn.004688ab
add esp, 0xc
test eax, eax
jne 0x45fd8d
push 3
jmp 0x45fd6c
lea ecx, [ebp - 0x34]
call fcn.0042f2d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x210]
xor ecx, ebp
call fcn.00484647
add ebp, 0x214
leave
ret 4