Function at 0x45f898
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, 0x4b9ea7
call fcn.0048501f
mov esi, dword [ebp + 0x21c]
mov eax, dword [esi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x45f8d6
push 2
pop eax
jmp 0x45fc3e
cmp ecx, 0x80
jle 0x45f8e2
push 8
jmp 0x45f8d0
cmp ecx, 3
jge 0x45f8ef
xor eax, eax
inc eax
jmp 0x45fc3e
cmp ecx, 1
jge 0x45f8fe
push 0x80070057
call fcn.0040dfb0
movzx edx, word [eax + 2]
push 0x3a
pop ebx
cmp dx, bx
jne 0x45f919
cmp ecx, 2
jl 0x45f8f4
movzx eax, word [eax + 4]
cmp ax, 0x5c
jne 0x45f8e7
xor edi, edi
test ecx, ecx
jle 0x45f966
push edi
mov ecx, esi
call fcn.0042e1e4
movzx eax, ax
cmp ax, bx
jne 0x45f934
cmp edi, 1
jne 0x45f98d
cmp ax, 0x2a
je 0x45f98d
cmp ax, 0x3f
je 0x45f98d
cmp ax, 0x22
je 0x45f98d
cmp ax, 0x3c
je 0x45f98d
cmp ax, 0x3e
je 0x45f98d
cmp ax, 0x7c
je 0x45f98d
cmp ax, 0x2f
je 0x45f98d
mov eax, dword [esi]
inc edi
cmp edi, dword [eax - 0xc]
jl 0x45f91f
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, 4
jge 0x45f994
xor edi, edi
inc edi
cmp ecx, edi
jle 0x45f986
jl 0x45f8f4
movzx edx, word [eax + 2]
cmp dx, bx
je 0x45f994
mov eax, edi
jmp 0x45fc3e
push 7
jmp 0x45f8d0
cmp ecx, 2
jl 0x45f9af
cmp ecx, 1
jl 0x45f8f4
movzx edx, word [eax + 2]
cmp dx, bx
jne 0x45f8e7
cmp ecx, 1
jle 0x45f9f9
mov ecx, dword [0x4c2244]
mov dword [ebp + 0x208], ecx
mov ecx, dword [0x4c2248]
mov dword [ebp + 0x20c], ecx
cmp dword [eax - 0xc], 0
jl 0x45f8f4
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 0x45f9f9
push 9
jmp 0x45f8d0
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.00484150
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 0x45fac0
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
call fcn.0045cb04
test eax, eax
je 0x45fa90
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x45f8f4
movzx eax, word [eax]
push ecx
mov ecx, esp
mov dword [ebp + 0x20c], esp
push 1
push eax
call fcn.0045e62a
mov ecx, ebx
call fcn.0045eabe
test eax, eax
je 0x45fa90
push 0
push 0x83
call fcn.00447386
pop ecx
pop ecx
push 5
push dword [ebx + 0xb97]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xc
jmp 0x45f8d0
push 0
push dword [ebx + 0xb97]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x45f8f4
movzx eax, word [eax]
push eax
mov ecx, ebx
call fcn.0045cb5f
test eax, eax
je 0x45fad4
push 0xd
jmp 0x45f8d0
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.0046cf6f
test eax, eax
jne 0x45fbad
mov edi, 0x4c559c
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.00426a03
lea ecx, [ebp + 0x20c]
mov byte [ebp - 4], 1
call fcn.00427fe7
lea ecx, [ebp - 0x10]
call fcn.00427fe7
push dword [ebp - 0x10]
lea ecx, [ebp + 0x20c]
call fcn.004266a6
test eax, eax
je 0x45fb7d
push edi
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0041af66
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 0x45fb8d
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 0x45fc3e
push esi
mov ecx, ebx
call fcn.0045d13a
test eax, eax
jne 0x45fb90
push 0xb
jmp 0x45fb5c
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.0042ec63
push dword [esi]
mov dword [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45fc05
push ecx
mov dword [ebp - 0x18], esp
mov ecx, esp
push esi
call fcn.004198bb
lea ecx, [ebp - 0x34]
call fcn.0042f2d3
test eax, eax
je 0x45fc16
cmp eax, 0x50
je 0x45fc05
cmp eax, 0xb7
je 0x45fc05
push 5
pop esi
cmp eax, esi
jne 0x45fc00
lea ecx, [ebp - 0x34]
call fcn.0042f27d
jmp 0x45fb76
xor esi, esi
inc esi
jmp 0x45fbf3
push esi
mov ecx, ebx
call fcn.0045d8a4
test eax, eax
jne 0x45fc16
push 5
pop esi
jmp 0x45fbf3
mov eax, dword [0x4ec6b0]
mov esi, dword [esi]
shl eax, 0x14
cdq
push edx
push eax
push esi
call fcn.00468750
add esp, 0xc
test eax, eax
jne 0x45fc34
push 3
jmp 0x45fc13
lea ecx, [ebp - 0x34]
call fcn.0042f27d
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.00484247
add ebp, 0x214
leave
ret 4