Function at 0x50fa20
Capabilities:
Check if file exists
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5825c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x5fc150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 4], 0
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x50fa69
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51009c
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x50fa84
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x50fbde
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x50fa9f
lea eax, [ebp + 8]
mov ebx, dword [ebp + 0x18]
cmp word [eax + ebx*2 - 2], 0x5c
jne 0x50fade
lea eax, [ebx - 1]
push eax
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp + 8]
call fcn.0040c490
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
push eax
call fcn.00403e70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.004038c0
mov ebx, dword [ebp + 0x18]
mov edi, dword [esi + 0xb8]
lea eax, [esi + 0xb4]
mov esi, dword [eax]
cmp esi, edi
je 0x50fd53
cmp dword [ebp + 0x1c], 8
mov eax, dword [esi]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x2ac], eax
jae 0x50fb08
lea edx, [ebp + 8]
cmp dword [eax + 0x48], 8
jb 0x50fb13
mov ecx, dword [eax + 0x34]
jmp 0x50fb16
lea ecx, [eax + 0x34]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x298], eax
cmp eax, ebx
jae 0x50fb25
mov ebx, eax
test ebx, ebx
jne 0x50fb84
xor eax, eax
test eax, eax
jne 0x50fb42
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x298]
cmp ecx, eax
jb 0x50fb42
jbe 0x51009c
mov ebx, dword [ebp - 0x2ac]
lea eax, [ebp + 8]
push eax
add ebx, 0x34
push ebx
call fcn.005120f0
add esp, 8
test al, al
jne 0x50fbf2
lea eax, [ebp + 8]
push ebx
push eax
call fcn.005120f0
add esp, 8
test al, al
jne 0x50fba5
add esi, 4
cmp esi, edi
je 0x50fd53
mov ebx, dword [ebp + 0x18]
jmp 0x50faf4
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x50fb97
add ecx, 2
add edx, 2
sub ebx, 1
jmp 0x50fb27
movzx eax, word [ecx]
cmp ax, word [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x50fb2b
cmp dword [ebp + 0x1c], 8
mov esi, dword [ebp + 8]
jae 0x50fbb1
lea esi, [ebp + 8]
call fcn.0040baa0
push esi
mov esi, dword [ebp - 0x2a8]
push 0
mov ecx, dword [eax + 0x234d8]
push 0
push str.Folder_as_Worspace_adding_folder_problem
push str.A_sub_folder_of_the_folder_you_want_to_add_exists._rPlease_remove_its_root_from_the_panel_before_you_add_folder___STR_REPLACE__.
push dword [esi + 8]
push str.FolderAsWorspaceSubfolderExists
call fcn.004607b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004038c0
jmp 0x5100c8
xor eax, eax
mov dword [ebp - 0x220], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x2ac]
add eax, 0x34
mov dword [ebp - 0x21c], 0
push eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
call fcn.00406ac0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x220]
mov eax, dword [ebp + 0x18]
sub eax, ecx
push eax
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp + 8]
call fcn.0040c490
mov byte [ebp - 4], 3
lea eax, [ebp - 0x248]
push 0x5c
push eax
lea eax, [ebp - 0x2b8]
push eax
call fcn.00513ef0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2b8]
mov ecx, esp
mov dword [ebp - 0x298], esp
push eax
call fcn.0044edf0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x230]
push 0
push eax
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x2a8]
mov ecx, esi
call fcn.00510a10
test eax, eax
je 0x50fcc2
push eax
push 9
push 0x110b
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2b8]
call fcn.00403aa0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x50fcf3
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x50fd31
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jmp 0x51009c
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 0
mov byte [ebp - 4], 6
xor eax, eax
push 3
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 0
push 0x588410
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00406c80
mov byte [ebp - 4], 7
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2a4]
call fcn.00408a40
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x50fdf0
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp + 0x1c], 8
mov word [ebp - 0x230], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x220], 0
jae 0x50fe19
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0054bd88
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
jne 0x50fe65
lea eax, [eax*2 - 2]
cmp eax, 0x208
jae 0x50fea3
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x50fea8
xor ecx, ecx
jmp 0x50fec0
call fcn.0052c478
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50feb1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00406c80
mov byte [ebp - 4], 8
lea eax, [ebp - 0x230]
push 0
push eax
lea ecx, [ebp - 0x294]
call fcn.0050e830
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x50ff0d
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407270
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp + 0x1c], 8
mov word [ebp - 0x230], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x220], 0
jae 0x50ff36
lea eax, [ebp + 8]
mov ebx, dword [ebp - 0x2a8]
lea ecx, [ebp - 0x294]
push 0
push 1
push ecx
lea ecx, [ebp - 0x2a4]
push ecx
push eax
mov ecx, ebx
call fcn.00510ce0
lea eax, [ebp - 0x294]
mov ecx, ebx
push eax
push 0
call fcn.005102a0
push eax
push 2
push 0x1102
push dword [ebx + 0x74]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x58
call fcn.0052bd3f
mov esi, eax
add esp, 4
mov dword [ebp - 0x298], esi
mov byte [ebp - 4], 0xb
test esi, esi
je 0x50ffba
lea eax, [ebp - 0x294]
mov ecx, esi
push eax
call fcn.0050e770
mov byte [ebp - 4], 0xc
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov byte [ebp - 4], 0xb
jmp 0x50ffbc
xor esi, esi
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebx + 0xb4]
mov dword [ebp - 0x298], esi
call fcn.00514e20
mov ecx, dword [ebx + 0xb8]
sub ecx, dword [ebx + 0xb4]
mov eax, dword [ebx + 0xb4]
push 0
push 0
sar ecx, 2
push 1
push 0
mov esi, dword [eax + ecx*4 - 4]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x514060
push 0
push 0
mov dword [esi + 0x54], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x50], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x294]
call fcn.0050eec0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2a4]
test eax, eax
je 0x51009c
push dword [ebp - 0x298]
lea ecx, [ebp - 0x2a4]
push ecx
push dword [ebp - 0x2a0]
push eax
call fcn.00401f90
mov ecx, dword [ebp - 0x29c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x2a4]
add esp, 0x10
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x2a4]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.004072d0
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x5100b8
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00407270
xor eax, eax
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c233
mov esp, ebp
pop ebp
ret 0x18