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

Disassembly:
push 0xffffffffffffffff
push 0x43cf1d
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x451690]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov eax, dword [0x451690]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov dword [esp + 0x120], 0
test byte [0x455b64], 1
jne 0x402877
or dword [0x455b64], 1
push 0x443e2b
mov ecx, 0x455b60
mov byte [esp + 0x124], 1
call fcn.00401ba0
push 0x43d670
call fcn.00427aaa
add esp, 4
mov byte [esp + 0x120], 0
mov eax, dword [0x455b60]
push 0x443e2b
push eax
call fcn.0042863c
add esp, 8
test eax, eax
setne al
test al, al
je 0x4028ae
mov eax, dword [0x455b60]
add eax, 0xfffffff0
push eax
call fcn.00401ca0
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x402ac0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call fcn.00401ba0
push 1
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 2
call fcn.00405d10
mov eax, dword [eax]
push 0x443e30
push eax
call fcn.0042863c
add esp, 8
test eax, eax
mov eax, dword [esp + 8]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40291c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x402930
push 1
push 0x443e30
lea ecx, [esp + 0x14]
call fcn.004065f0
mov ecx, dword [esp + 0x12c]
push 0x443e4c
push ecx
call fcn.0042863c
add esp, 8
test eax, eax
sete al
test al, al
je 0x402982
cmp byte [esp + 0x128], 1
mov eax, str.LBTClient_
je 0x402962
mov eax, str.LBClient_
push eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00401720
add esp, 0xc
mov byte [esp + 0x120], 3
jmp 0x402a4f
mov ecx, dword [esp + 0x12c]
push 0x443e68
push ecx
call fcn.0042863c
add esp, 8
test eax, eax
sete al
test al, al
je 0x4029d1
cmp byte [esp + 0x128], 1
mov eax, str.LBTMainClient_
je 0x4029b4
mov eax, str.LBMainClient_
push eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00401720
add esp, 0xc
mov byte [esp + 0x120], 4
jmp 0x402a4f
mov ecx, dword [esp + 0x12c]
push 0x443e8c
push ecx
call fcn.0042863c
add esp, 8
test eax, eax
sete al
test al, al
je 0x402a20
cmp byte [esp + 0x128], 1
mov eax, str.LBTXYClient_
je 0x402a03
mov eax, str.LBXYClient_
push eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00401720
add esp, 0xc
mov byte [esp + 0x120], 5
jmp 0x402a4f
cmp byte [esp + 0x128], 1
mov eax, str.LBTPCClient_
je 0x402a34
mov eax, str.LBPCClient_
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00401720
add esp, 0xc
mov byte [esp + 0x120], 6
push eax
mov ecx, 0x455b60
call fcn.00406b60
mov byte [esp + 0x120], 2
mov eax, dword [esp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x455b60]
add eax, 0xfffffff0
push eax
call fcn.00401ca0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x124], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ac0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x120], 0xffffffff
mov eax, dword [esp + 0x12c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402aee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00427974
add esp, 0x11c
ret