Function at 0x428890
Capabilities:
Get common file path
Get disk information
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x458641
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa1c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x22c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x22c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor esi, esi
lea ebp, [esp + 0x22c]
cmp word [esp + 0x22c], si
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
je 0x428b95
mov ecx, dword [0x463058]
mov dword [esp + 0x14], ecx
xor edx, edx
lea eax, [esp + 0x14]
mov dx, word [ebp]
mov dword [esp + 0xa34], esi
push edx
push 0x4639f0
push eax
call fcn.00406f70
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebx
call fcn.004287c0
test eax, eax
jne 0x428986
push ebp
call fcn.004438a5
mov edx, dword [0x46305c]
lea ebp, [ebp + eax*2 + 2]
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0xa34], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x428b8b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x428b8b
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
jmp 0x428b8b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xa40]
cmp eax, ecx
jl 0x428b6a
jg 0x4289ae
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xa3c]
cmp ecx, eax
jbe 0x428b6a
mov edx, dword [0x463058]
mov dword [esp + 0x10], edx
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x24]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push 0x26
push eax
push esi
mov byte [esp + 0xa44], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x428adb
mov ecx, dword [0x463058]
mov edx, 0x46358c
test edx, edx
mov dword [esp + 0x18], ecx
je 0x428a52
mov eax, edx
shr eax, 0x10
jne 0x428a11
xor eax, eax
mov ecx, edx
mov ax, cx
lea ecx, [esp + 0x18]
push eax
call fcn.00406f90
jmp 0x428a52
push 0x46358c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x428a52
push esi
lea ecx, [esp + 0x1c]
call fcn.00403db0
test eax, eax
je 0x428a52
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x428a52
mov edi, dword [esp + 0x18]
mov eax, ecx
mov esi, 0x46358c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
mov byte [esp + 0xa40], 2
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov cx, word [ebp]
lea edx, [esp + 0x24]
test edx, edx
mov word [esp + 0x24], cx
jne 0x428a84
xor eax, eax
jmp 0x428a8f
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00403e10
mov eax, dword [esp + 0x18]
mov ecx, dword [0x46305c]
mov byte [esp + 0xa34], 1
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x428b48
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x428b48
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.0043733c
add esp, 4
jmp 0x428b48
xor ecx, ecx
lea edx, [esp + 0x10]
mov cx, word [ebp]
push ecx
push 0x463550
push edx
call fcn.00406f70
mov eax, dword [ebx + 0x7bc]
mov ecx, dword [esp + 0x1c]
lea esi, [ebx + 0x7bc]
add esp, 0xc
cmp eax, ecx
je 0x428b48
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x428b1c
mov edx, dword [0x46305c]
add eax, 0xfffffff4
cmp eax, edx
jne 0x428b23
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x428b31
mov eax, dword [ecx - 8]
push ecx
push eax
mov ecx, esi
call fcn.00403e10
jmp 0x428b48
mov ecx, esi
call fcn.00403ed0
mov eax, dword [esp + 0x10]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.00428740
test eax, eax
jne 0x428bb3
lea ecx, [esp + 0x10]
mov byte [esp + 0xa34], al
call fcn.00403d80
xor esi, esi
push ebp
call fcn.004438a5
add esp, 4
lea ecx, [esp + 0x14]
lea ebp, [ebp + eax*2 + 2]
mov dword [esp + 0xa34], 0xffffffff
call fcn.00403d80
cmp word [ebp], si
jne 0x4288f3
xor ax, ax
mov ecx, dword [esp + 0xa2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa28
ret 0xc
mov esi, dword [esp + 0xa44]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
cmp ecx, eax
je 0x428c08
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x428bd8
mov edx, dword [0x46305c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x428bdf
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x428bed
mov edx, dword [eax - 8]
push eax
push edx
mov ecx, esi
call fcn.00403e10
jmp 0x428c04
mov ecx, esi
call fcn.00403ed0
mov eax, dword [esp + 0x10]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x46305c]
mov bp, word [ebp]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x428c37
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x428c37
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x46305c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x428c66
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x428c66
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
mov ax, bp
jmp 0x428b98