Function at 0x402a20
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4327b9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x43e0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov eax, dword [0x43e060]
mov edx, dword [eax + 0xc]
mov ecx, 0x43e060
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
lea eax, [ebp - 0x18]
mov edi, 1
push eax
mov dword [ebp - 0x10], edi
call fcn.004027c0
mov dword [ebp - 4], edi
mov ecx, dword [eax]
mov edi, dword [esi]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x402acd
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x402ac3
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x402ac3
call fcn.00405330
mov dword [ebp - 0x14], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x402ab9
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
mov dword [esi], ecx
jmp 0x402acd
mov ebx, dword [ecx - 0xc]
push ecx
push esi
call fcn.00405280
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402af0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x402b31
lea ecx, [ebp - 0x18]
call fcn.004024a0
mov edi, esi
mov dword [ebp - 4], 2
call fcn.004048a0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402b31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x402c0f
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x402b5c
mov eax, edi
mov ecx, esi
call fcn.004055c0
mov eax, dword [esi]
cmp dword [eax - 8], edi
jge 0x402b6d
push 0x80070057
call fcn.00401540
xor edx, edx
push eax
push edx
push edx
mov dword [eax - 0xc], edi
mov ecx, dword [esi]
push 0x26
push edx
mov word [ecx + 0x208], dx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x402b9e
push ecx
push eax
call fcn.0041f064
add esp, 8
test eax, eax
js 0x402b63
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x402b63
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov ecx, dword [0x441558]
lea edi, [ebp - 0x18]
call fcn.00415840
mov dword [ebp - 4], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ebx, esi
call fcn.00405500
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402bf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004021f0
mov ecx, dword [esi]
test ecx, ecx
je 0x402c0a
call fcn.004022f0
test eax, eax
jne 0x402c0f
call fcn.00404e60
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
jne 0x402c82
mov eax, 0x441584
mov edi, esi
call fcn.004048a0
mov ecx, dword [0x441554]
lea edi, [ebp - 0x18]
call fcn.00415840
mov dword [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ebx, esi
call fcn.00405500
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402c69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004021f0
mov ecx, dword [esi]
test ecx, ecx
je 0x402c7d
call fcn.004022f0
test eax, eax
jne 0x402c82
call fcn.00404e60
mov ecx, dword [esi]
cmp dword [ecx - 0xc], 0
je 0x402c96
mov eax, esi
mov edi, 0x441580
call fcn.004048a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4