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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550445
mov eax, dword fs:[0]
push eax
sub esp, 0x3ac
mov eax, dword [0x5c0078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3b4], esi
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x28
mov dword [ebp - 0x3b0], 0
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0
mov dword [ebp - 0x3b8], esi
call edi
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x380], 0xf
mov dword [ebp - 0x384], 0
mov byte [ebp - 0x394], 0
jne 0x40b88b
xor ecx, ecx
jmp 0x40b89d
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b894
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x394]
call fcn.00404850
push 2
push ecx
push 0x5b2ab8
lea ecx, [ebp - 0x394]
mov dword [ebp - 4], 1
call fcn.004177e0
push eax
push 0
lea eax, [ebp - 0x3ac]
push eax
lea ecx, [ebp - 0x394]
call fcn.00402a40
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
push 0
push 0
push 0x26
push 0
call edi
cmp byte [ebp - 0x218], 0
mov dword [ebp - 0x368], 0xf
mov dword [ebp - 0x36c], 0
mov byte [ebp - 0x37c], 0
jne 0x40b91c
xor ecx, ecx
jmp 0x40b92e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b925
sub ecx, edx
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x37c]
call fcn.00404850
lea eax, [ebp - 0x31c]
mov byte [ebp - 4], 3
push eax
push 0
push 0
push 0x2a
push 0
call edi
cmp byte [ebp - 0x31c], 0
mov dword [ebp - 0x350], 0xf
mov dword [ebp - 0x354], 0
mov byte [ebp - 0x364], 0
jne 0x40b97e
xor ecx, ecx
jmp 0x40b990
lea ecx, [ebp - 0x31c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b987
sub ecx, edx
push ecx
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x364]
call fcn.00404850
mov byte [ebp - 4], 4
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0xa
push str._token.txt
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x3b0], 1
mov dword [ebp - 0x320], 0xf
mov dword [ebp - 0x324], 0
mov byte [ebp - 0x334], 0
call fcn.00404850
lea eax, [ebp - 0x334]
mov byte [ebp - 4], 5
push eax
mov ecx, esi
call fcn.00413070
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x320]
cmp eax, 0x10
jb 0x40ba34
inc eax
lea ecx, [ebp - 0x334]
push eax
push dword [ebp - 0x334]
call fcn.00404f30
push 0x12
push 0x5b2b34
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x320], 0xf
mov dword [ebp - 0x324], 0
mov byte [ebp - 0x334], 0
call fcn.00404850
lea eax, [ebp - 0x334]
mov byte [ebp - 4], 6
push eax
mov ecx, esi
call fcn.00413070
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x320]
cmp eax, 0x10
jb 0x40ba95
inc eax
lea ecx, [ebp - 0x334]
push eax
push dword [ebp - 0x334]
call fcn.00404f30
push 0x5b2b24
lea edx, [ebp - 0x3ac]
lea ecx, [ebp - 0x334]
call fcn.00419cc0
add esp, 4
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00413070
mov eax, dword [ebp - 0x320]
cmp eax, 0x10
jb 0x40bad8
inc eax
lea ecx, [ebp - 0x334]
push eax
push dword [ebp - 0x334]
call fcn.00404f30
mov dword [ebp - 0x320], 0xf
mov dword [ebp - 0x324], 0
mov byte [ebp - 0x334], 0
mov dword [ebp - 0x338], 0xf
mov dword [ebp - 0x33c], 0
mov byte [ebp - 0x34c], 0
sub esp, 0x28
mov byte [ebp - 4], 9
mov eax, esp
lea ecx, [ebp - 0x34c]
mov dword [eax], vtable.std::_Func_impl_class__lambda_fc41d9313179dfa39bac3c74b9a3242f___class_std::allocator_int___void__char_const__.0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
call fcn.0040a4e0
mov eax, dword [ebp - 0x338]
add esp, 0x28
cmp eax, 0x10
jb 0x40bb52
inc eax
lea ecx, [ebp - 0x34c]
push eax
push dword [ebp - 0x34c]
call fcn.00404f30
mov eax, dword [ebp - 0x350]
mov dword [ebp - 0x338], 0xf
mov dword [ebp - 0x33c], 0
mov byte [ebp - 0x34c], 0
cmp eax, 0x10
jb 0x40bb8b
inc eax
lea ecx, [ebp - 0x364]
push eax
push dword [ebp - 0x364]
call fcn.00404f30
mov eax, dword [ebp - 0x368]
mov dword [ebp - 0x350], 0xf
mov dword [ebp - 0x354], 0
mov byte [ebp - 0x364], 0
cmp eax, 0x10
jb 0x40bbc4
inc eax
lea ecx, [ebp - 0x37c]
push eax
push dword [ebp - 0x37c]
call fcn.00404f30
mov eax, dword [ebp - 0x398]
mov dword [ebp - 0x368], 0xf
mov dword [ebp - 0x36c], 0
mov byte [ebp - 0x37c], 0
cmp eax, 0x10
jb 0x40bbfd
inc eax
lea ecx, [ebp - 0x3ac]
push eax
push dword [ebp - 0x3ac]
call fcn.00404f30
mov ecx, dword [ebp - 0x380]
mov dword [ebp - 0x398], 0xf
mov dword [ebp - 0x39c], 0
mov byte [ebp - 0x3ac], 0
cmp ecx, 0x10
jb 0x40bc36
inc ecx
push ecx
push dword [ebp - 0x394]
lea ecx, [ebp - 0x394]
call fcn.00404f30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004351b3
mov esp, ebp
pop ebp
ret