Function at 0x4dea58
Capabilities:
Check if file exists
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
push 0x1a
lea eax, [ebp - 0x20c]
mov ebx, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcslen
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov esi, 0x56aa10
push eax
mov ecx, esi
call fcn.00410dd4
mov edi, str.Expertmain_tab_labels.json
push edi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00422558
cmp dword [0x56aa24], 8
mov eax, esi
jb 0x4deac9
mov eax, dword [0x56aa10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4deed9
xor edi, edi
lea ecx, [ebp - 0x378]
push edi
call fcn.0040ce9c
lea ecx, [ebp - 0x340]
call fcn.00407d52
cmp dword [0x56aa24], 8
jb 0x4deb00
mov esi, dword [0x56aa10]
push 1
push 0x40
push 0x21
push esi
lea ecx, [ebp - 0x448]
call fcn.0045c1a8
push 1
lea eax, [ebp - 0x378]
push eax
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x340]
call fcn.0040af71
test al, al
je 0x4deeb8
push str.main_tab_labels
lea ecx, [ebp - 0x378]
call fcn.0040d272
push eax
lea ecx, [ebp - 0x360]
call fcn.0040cd19
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x270], ecx
mov esi, edi
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x28c], edi
mov word [ebp - 0x29c], ax
mov dword [ebp - 0x274], edi
mov word [ebp - 0x284], ax
call fcn.0040eac5
test eax, eax
je 0x4decf1
lea eax, [ebp - 0x23c]
push eax
push str.index
push esi
lea ecx, [ebp - 0x360]
call fcn.0040d15c
mov ecx, eax
call fcn.0040d272
mov ecx, eax
call fcn.0040e029
cmp dword [eax + 0x14], 0x10
jb 0x4debbf
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x224]
call fcn.00404eab
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00447ef1
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x29c]
call fcn.004132cc
lea ecx, [ebp - 0x26c]
call fcn.00410d88
lea ecx, [ebp - 0x224]
call fcn.004061d7
lea ecx, [ebp - 0x23c]
call fcn.004061d7
lea eax, [ebp - 0x26c]
push eax
push str.label
push esi
lea ecx, [ebp - 0x360]
call fcn.0040d15c
mov ecx, eax
call fcn.0040d272
mov ecx, eax
call fcn.0040e029
cmp dword [eax + 0x14], 0x10
jb 0x4dec3b
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x224]
call fcn.00404eab
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00447ef1
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x284]
call fcn.004132cc
lea ecx, [ebp - 0x23c]
call fcn.00410d88
lea ecx, [ebp - 0x224]
call fcn.004061d7
lea ecx, [ebp - 0x26c]
call fcn.004061d7
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x254]
call fcn.004a0fe5
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebx + 0x48]
call fcn.004a12d1
push eax
add eax, 0x10
lea ecx, [ebx + 0x48]
push eax
push 0
lea eax, [ebp - 0x348]
push eax
call fcn.00436bbf
lea ecx, [ebp - 0x23c]
call fcn.00410d88
lea ecx, [ebp - 0x254]
call fcn.00410d88
lea ecx, [ebp - 0x360]
inc esi
call fcn.0040eac5
cmp esi, eax
jb 0x4deb91
push str.broadcast
lea ecx, [ebp - 0x378]
call fcn.0040d272
push eax
lea ecx, [ebp - 0x390]
call fcn.0040cd19
lea eax, [ebp - 0x26c]
push eax
push str.text
lea ecx, [ebp - 0x390]
call fcn.0040d272
mov ecx, eax
call fcn.0040e029
cmp dword [eax + 0x14], 0x10
jb 0x4ded33
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x224]
call fcn.00404eab
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00447ef1
pop ecx
pop ecx
xor ecx, ecx
mov byte [ebp - 0x344], cl
push dword [ebp - 0x344]
mov dword [ebp - 0x2bc], ecx
mov dword [ebp - 0x2b8], ecx
lea ecx, [ebp - 0x2cc]
push eax
call fcn.00410cac
lea ecx, [ebp - 0x23c]
call fcn.00410d88
lea ecx, [ebp - 0x224]
call fcn.004061d7
lea ecx, [ebp - 0x26c]
call fcn.004061d7
lea eax, [ebp - 0x26c]
push eax
push str.link
lea ecx, [ebp - 0x390]
call fcn.0040d272
mov ecx, eax
call fcn.0040e029
cmp dword [eax + 0x14], 0x10
jb 0x4dedc1
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x224]
call fcn.00404eab
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00447ef1
pop ecx
pop ecx
xor ecx, ecx
mov byte [ebp - 0x344], cl
push dword [ebp - 0x344]
mov dword [ebp - 0x2a4], ecx
mov dword [ebp - 0x2a0], ecx
lea ecx, [ebp - 0x2b4]
push eax
call fcn.00410cac
lea ecx, [ebp - 0x23c]
call fcn.00410d88
lea ecx, [ebp - 0x224]
call fcn.004061d7
lea ecx, [ebp - 0x26c]
call fcn.004061d7
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x254]
call fcn.004a0fe5
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebx + 0x50]
call fcn.004132cc
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebx + 0x68]
call fcn.004132cc
lea ecx, [ebp - 0x23c]
call fcn.00410d88
lea ecx, [ebp - 0x254]
call fcn.00410d88
lea ecx, [ebp - 0x2b4]
call fcn.00410d88
lea ecx, [ebp - 0x2cc]
call fcn.00410d88
lea ecx, [ebp - 0x390]
call fcn.0040cfe8
lea ecx, [ebp - 0x284]
call fcn.00410d88
lea ecx, [ebp - 0x29c]
call fcn.00410d88
lea ecx, [ebp - 0x360]
call fcn.0040cfe8
lea ecx, [ebp - 0x448]
call fcn.0045cc4c
lea ecx, [ebp - 0x340]
call fcn.004494af
lea ecx, [ebp - 0x378]
call fcn.0040cfe8
xor eax, eax
push eax
push eax
push eax
push 0x4de8ae
push eax
push eax
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
pop edi
pop esi
pop ebx
test eax, eax
je 0x4deefb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00522d04
leave
ret