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

Disassembly:
push 0xffffffffffffffff
push 0x44b926
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
mov eax, dword [0x455050]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], eax
mov ecx, dword [0x45b330]
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 0x420a3f
mov word [esp + 0x2c], di
mov ecx, pe_nt_image_headers32
sub ecx, eax
cmp ecx, 1
jle 0x420a5b
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x10]
push edx
call fcn.00403e20
jmp 0x420aa9
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.004048a0
cmp eax, edi
je 0x420a9e
push esi
push eax
push 0x9d
call fcn.00404ba0
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x420a9e
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.004048a0
cmp eax, edi
jne 0x420a72
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00404960
mov eax, dword [esp + 0x10]
push eax
call fcn.004368f1
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 0x420c18
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 0x420c18
mov eax, dword [0x455050]
mov ecx, str.360360safe
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x420b5c
mov edx, ecx
shr edx, 0x10
jne 0x420b1b
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x14]
push eax
call fcn.004015b0
jmp 0x420b5c
push str.360360safe
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x420b5c
push esi
lea ecx, [esp + 0x18]
call fcn.00401820
test eax, eax
je 0x420b5c
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x420b5c
mov edi, dword [esp + 0x14]
mov eax, ecx
mov esi, str.360360safe
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 0x420b85
xor eax, eax
jmp 0x420b90
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.00404a30
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
test eax, eax
lea esi, [edx + 0x40]
je 0x420bb7
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.00404a30
mov esi, dword [esi]
mov eax, ebx
shl eax, 0x14
cdq
push edx
push eax
push esi
call fcn.00405be0
mov edx, dword [0x455054]
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [esp + 0x23c], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x420c10
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x420c10
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0042ac06
add esp, 4
test esi, esi
jne 0x420d31
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 0x420c95
mov ecx, dword [0x455858]
mov edx, dword [0x45585c]
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 0x420c95
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.00405b40
add esp, 8
test eax, eax
je 0x420c95
mov ecx, dword [esp + 0x24]
mov eax, ebx
shl eax, 0x14
cdq
cmp ecx, edx
jg 0x420ca0
jl 0x420c95
mov edx, dword [esp + 0x20]
cmp edx, eax
ja 0x420ca0
inc esi
cmp esi, 0x1a
jl 0x420c28
jmp 0x420d31
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x40]
lea esi, [eax + 0x40]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x420cd7
lea edx, [esp + 0x14]
test edx, edx
jne 0x420cbd
xor eax, eax
jmp 0x420cc8
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.00404a30
jmp 0x420ce7
mov edi, dword [esp + 0x14]
mov ecx, esi
call fcn.0040ab90
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 0x420d31
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x420d07
mov edx, dword [0x455054]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x420d0e
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x420d1c
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, edi
call fcn.00404a30
jmp 0x420d31
mov ecx, edi
call fcn.00401880
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 [0x455054]
pop edi
pop esi
lea ecx, [eax - 0xc]
pop ebp
cmp ecx, edx
pop ebx
je 0x420d64
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x420d64
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.0042ac06
add esp, 4
mov ecx, dword [esp + 0x224]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x230
ret