Function at 0x45f819
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, 0x4b9e27
call fcn.00484f9f
mov esi, dword [ebp + 0x21c]
mov eax, dword [esi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x45f857
push 2
pop eax
jmp 0x45fbbf
cmp ecx, 0x80
jle 0x45f863
push 8
jmp 0x45f851
cmp ecx, 3
jge 0x45f870
xor eax, eax
inc eax
jmp 0x45fbbf
cmp ecx, 1
jge 0x45f87f
push 0x80070057
call fcn.0040dfb0
movzx edx, word [eax + 2]
push 0x3a
pop ebx
cmp dx, bx
jne 0x45f89a
cmp ecx, 2
jl 0x45f875
movzx eax, word [eax + 4]
cmp ax, 0x5c
jne 0x45f868
xor edi, edi
test ecx, ecx
jle 0x45f8e7
push edi
mov ecx, esi
call fcn.0042e1e4
movzx eax, ax
cmp ax, bx
jne 0x45f8b5
cmp edi, 1
jne 0x45f90e
cmp ax, 0x2a
je 0x45f90e
cmp ax, 0x3f
je 0x45f90e
cmp ax, 0x22
je 0x45f90e
cmp ax, 0x3c
je 0x45f90e
cmp ax, 0x3e
je 0x45f90e
cmp ax, 0x7c
je 0x45f90e
cmp ax, 0x2f
je 0x45f90e
mov eax, dword [esi]
inc edi
cmp edi, dword [eax - 0xc]
jl 0x45f8a0
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, 4
jge 0x45f915
xor edi, edi
inc edi
cmp ecx, edi
jle 0x45f907
jl 0x45f875
movzx edx, word [eax + 2]
cmp dx, bx
je 0x45f915
mov eax, edi
jmp 0x45fbbf
push 7
jmp 0x45f851
cmp ecx, 2
jl 0x45f930
cmp ecx, 1
jl 0x45f875
movzx edx, word [eax + 2]
cmp dx, bx
jne 0x45f868
cmp ecx, 1
jle 0x45f97a
mov ecx, dword [0x4c2244]
mov dword [ebp + 0x208], ecx
mov ecx, dword [0x4c2248]
mov dword [ebp + 0x20c], ecx
cmp dword [eax - 0xc], 0
jl 0x45f875
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 0x45f97a
push 9
jmp 0x45f851
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.004840d0
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 0x45fa41
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
call fcn.0045caec
test eax, eax
je 0x45fa11
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x45f875
movzx eax, word [eax]
push ecx
mov ecx, esp
mov dword [ebp + 0x20c], esp
push 1
push eax
call fcn.0045e612
mov ecx, ebx
call fcn.0045eaa6
test eax, eax
je 0x45fa11
push 0
push 0x83
call fcn.0044736d
pop ecx
pop ecx
push 5
push dword [ebx + 0xb97]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xc
jmp 0x45f851
push 0
push dword [ebx + 0xb97]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x45f875
movzx eax, word [eax]
push eax
mov ecx, ebx
call fcn.0045cb47
test eax, eax
je 0x45fa55
push 0xd
jmp 0x45f851
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.0046cede
test eax, eax
jne 0x45fb2e
mov edi, 0x4c5538
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 0x45fafe
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 0x45fb0e
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 0x45fbbf
push esi
mov ecx, ebx
call fcn.0045d122
test eax, eax
jne 0x45fb11
push 0xb
jmp 0x45fadd
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 0x45fb86
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 0x45fb97
cmp eax, 0x50
je 0x45fb86
cmp eax, 0xb7
je 0x45fb86
push 5
pop esi
cmp eax, esi
jne 0x45fb81
lea ecx, [ebp - 0x34]
call fcn.0042f27d
jmp 0x45faf7
xor esi, esi
inc esi
jmp 0x45fb74
push esi
mov ecx, ebx
call fcn.0045d88c
test eax, eax
jne 0x45fb97
push 5
pop esi
jmp 0x45fb74
mov eax, dword [0x4ec6b0]
mov esi, dword [esi]
shl eax, 0x14
cdq
push edx
push eax
push esi
call fcn.004686bf
add esp, 0xc
test eax, eax
jne 0x45fbb5
push 3
jmp 0x45fb94
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.004841c7
add ebp, 0x214
leave
ret 4