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

Disassembly:
push 0xffffffffffffffff
push 0x458c46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
mov eax, dword [0x463058]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], eax
mov ecx, dword [0x469708]
lea edx, [esp + 0x2c]
push pe_nt_image_headers32
push edx
mov eax, dword [ecx + 8]
xor edi, edi
push 0x9d
push eax
mov dword [esp + 0x24c], edi
call dword [sym.imp.USER32.dll_LoadStringW]
cmp eax, edi
jne 0x43110f
mov word [esp + 0x2c], di
mov ecx, pe_nt_image_headers32
sub ecx, eax
cmp ecx, 1
jle 0x43112b
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x10]
push edx
call fcn.004030c0
jmp 0x431179
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.00403bf0
cmp eax, edi
je 0x43116e
push esi
push eax
push 0x9d
call fcn.00403f40
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x43116e
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.00403bf0
cmp eax, edi
jne 0x431142
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00403cb0
mov eax, dword [esp + 0x10]
push eax
call fcn.00442b68
mov ecx, dword [ebp + 0x44]
add ebp, 0x44
mov ebx, eax
add esp, 4
mov eax, dword [ecx - 8]
mov dword [esp + 0x28], ebp
cmp eax, edi
jne 0x4312e8
xor eax, eax
lea edx, [esp + 0x2c]
push eax
mov ecx, 0x82
lea edi, [esp + 0x30]
push 0x26
push edx
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4312e8
mov eax, dword [0x463058]
mov ecx, 0x46358c
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x43122c
mov edx, ecx
shr edx, 0x10
jne 0x4311eb
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x14]
push eax
call fcn.00406f90
jmp 0x43122c
push 0x46358c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x43122c
push esi
lea ecx, [esp + 0x18]
call fcn.00403db0
test eax, eax
je 0x43122c
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x43122c
mov edi, dword [esp + 0x14]
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 + 0x14]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
mov byte [esp + 0x248], 1
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x2c]
test ecx, ecx
jne 0x431255
xor eax, eax
jmp 0x431260
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x2c]
push ecx
push eax
mov ecx, ebp
call fcn.00403e10
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
test eax, eax
lea esi, [edx + 0x40]
je 0x431287
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x2c]
mov ecx, esi
push edx
push eax
call fcn.00403e10
mov esi, dword [esi]
mov eax, ebx
shl eax, 0x14
cdq
push edx
push eax
push esi
call fcn.0042a2a0
mov edx, dword [0x46305c]
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [esp + 0x23c], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4312e0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4312e0
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
test esi, esi
jne 0x431401
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, eax
xor esi, esi
mov eax, 1
mov ecx, esi
shl eax, cl
test edi, eax
je 0x431365
mov ecx, dword [0x463544]
mov edx, dword [0x463548]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
lea eax, [esi + 0x41]
push ecx
mov dword [esp + 0x1c], edx
mov word [esp + 0x18], ax
call ebp
cmp eax, 3
jne 0x431365
xor eax, eax
lea edx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0042a200
add esp, 8
test eax, eax
je 0x431365
mov ecx, dword [esp + 0x24]
mov eax, ebx
shl eax, 0x14
cdq
cmp ecx, edx
jg 0x431370
jl 0x431365
mov edx, dword [esp + 0x20]
cmp edx, eax
ja 0x431370
inc esi
cmp esi, 0x1a
jl 0x4312f8
jmp 0x431401
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x40]
lea esi, [eax + 0x40]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4313a7
lea edx, [esp + 0x14]
test edx, edx
jne 0x43138d
xor eax, eax
jmp 0x431398
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00403e10
jmp 0x4313b7
mov edi, dword [esp + 0x14]
mov ecx, esi
call fcn.004073c0
mov edx, dword [esi]
mov word [edx], di
mov edi, dword [esp + 0x28]
mov eax, dword [esi]
mov ecx, dword [edi]
cmp ecx, eax
je 0x431401
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4313d7
mov edx, dword [0x46305c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4313de
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4313ec
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, edi
call fcn.00403e10
jmp 0x431401
mov ecx, edi
call fcn.00403ed0
mov esi, dword [esi]
mov dword [edi], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x46305c]
pop edi
pop esi
lea ecx, [eax - 0xc]
pop ebp
cmp ecx, edx
pop ebx
je 0x431434
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x431434
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
mov ecx, dword [esp + 0x224]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x230
ret