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

Disassembly:
push 0xffffffffffffffff
push 0x43c88d
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4516a0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov eax, dword [0x4516a0]
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 [0x455b5c], 1
jne 0x402427
or dword [0x455b5c], 1
push 0x443e0b
mov ecx, 0x455b58
mov byte [esp + 0x124], 1
call fcn.00401bb0
push 0x43cfa0
call fcn.004274f1
add esp, 4
mov byte [esp + 0x120], 0
mov eax, dword [0x455b58]
push 0x443e0b
push eax
call fcn.00428188
add esp, 8
test eax, eax
setne al
test al, al
je 0x40245e
mov eax, dword [0x455b58]
add eax, 0xfffffff0
push eax
call fcn.00401cb0
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x402670
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.00401bb0
push 1
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 2
call fcn.00405730
mov eax, dword [eax]
push 0x443e1c
push eax
call fcn.00428188
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 0x4024cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4024e0
push 1
push 0x443e1c
lea ecx, [esp + 0x14]
call fcn.00405cd0
mov ecx, dword [esp + 0x12c]
push 0x443e30
push ecx
call fcn.00428188
add esp, 8
test eax, eax
sete al
test al, al
je 0x402532
cmp byte [esp + 0x128], 1
mov eax, str.LBTClient_
je 0x402512
mov eax, str.LBClient_
push eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00401730
add esp, 0xc
mov byte [esp + 0x120], 3
jmp 0x4025ff
mov ecx, dword [esp + 0x12c]
push 0x443e4c
push ecx
call fcn.00428188
add esp, 8
test eax, eax
sete al
test al, al
je 0x402581
cmp byte [esp + 0x128], 1
mov eax, str.LBTMainClient_
je 0x402564
mov eax, str.LBMainClient_
push eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00401730
add esp, 0xc
mov byte [esp + 0x120], 4
jmp 0x4025ff
mov ecx, dword [esp + 0x12c]
push 0x443e70
push ecx
call fcn.00428188
add esp, 8
test eax, eax
sete al
test al, al
je 0x4025d0
cmp byte [esp + 0x128], 1
mov eax, str.LBTXYClient_
je 0x4025b3
mov eax, str.LBXYClient_
push eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00401730
add esp, 0xc
mov byte [esp + 0x120], 5
jmp 0x4025ff
cmp byte [esp + 0x128], 1
mov eax, str.LBTPCClient_
je 0x4025e4
mov eax, str.LBPCClient_
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00401730
add esp, 0xc
mov byte [esp + 0x120], 6
push eax
mov ecx, 0x455b58
call fcn.004065b0
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 0x402632
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x455b58]
add eax, 0xfffffff0
push eax
call fcn.00401cb0
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 0x402670
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 0x40269e
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.004273bb
add esp, 0x11c
ret