Function at 0x411670
Capabilities:
Check if file exists
Create directory
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d0
mov eax, dword [0x439030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
mov dword [ebp - 0x5b4], edi
call fcn.0041ba00
mov eax, dword [edi + 0x105c]
add eax, dword [edi + 0x1068]
push eax
lea eax, [ebp - 0xcc]
push str.tabpage_tmp__d
push eax
call fcn.00402d1a
mov esi, dword [sym.imp.zbgui.dll_GetPluginByName]
lea eax, [ebp - 0xcc]
add esp, 0x18
push eax
push dword [0x43c108]
call esi
push dword [edi + 0x105c]
mov ebx, eax
lea eax, [ebp - 0xcc]
push str.tabpage__ld
push eax
call fcn.00402d1a
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
push dword [0x43c108]
call esi
push str.btn_item_tmp_
push dword [0x43c108]
mov dword [ebp - 0x5c4], eax
call esi
mov dword [ebp - 0x5b8], eax
test ebx, ebx
je 0x411aac
mov esi, dword [ebp - 0x5c4]
test esi, esi
je 0x411aac
test eax, eax
je 0x411aac
mov eax, dword [ebx]
push ebx
call dword [eax + 0x98]
test eax, eax
jne 0x411a7d
mov esi, dword [edi + 4]
xor edi, edi
push 0x206
mov word [ebp - 0x5a4], ax
lea eax, [ebp - 0x5a2]
push edi
push eax
mov dword [ebp - 0x5bc], esi
call fcn.0041ba00
mov ecx, dword [ebp - 0x5b8]
add esp, 0xc
mov eax, dword [ecx]
push ecx
call dword [eax + 0x78]
mov ecx, dword [ebp - 0x5b8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov eax, dword [ebp - 0x5b4]
push 0x1b8a0
imul eax, dword [eax + 0x1068], 0x18
mov dword [ebp - 0x5c0], eax
add eax, 0x18
mov dword [ebp - 0x5d0], eax
call fcn.00417e2e
mov dword [esp], 0x1b8a0
push edi
push eax
mov dword [ebp - 0x5c8], eax
call fcn.0041ba00
xor ecx, ecx
xor eax, eax
push 0x206
mov word [ebp - 0x39c], ax
lea eax, [ebp - 0x39a]
push ecx
push eax
mov dword [ebp - 0x5b0], ecx
mov dword [ebp - 0x5ac], ecx
call fcn.0041ba00
add esp, 0x14
lea eax, [ebp - 0x39c]
push eax
call fcn.00401a1a
push str.cache_
lea eax, [ebp - 0x39c]
push 0x104
push eax
call fcn.0041826c
add esp, 0xc
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41183b
push eax
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
je 0x411a51
mov eax, dword [ebp - 0x5c8]
mov ecx, dword [ebp - 0x5c0]
add eax, 0x104c
mov dword [ebp - 0x5a8], eax
mov eax, edi
cmp eax, ecx
jge 0x411872
mov esi, dword [esi + 0xcd20]
inc eax
mov dword [ebp - 0x5bc], esi
jmp 0x411a43
cmp eax, dword [ebp - 0x5d0]
jge 0x411a51
mov eax, dword [ebx]
push 1
push ebx
call dword [eax + 0x10c]
push dword [esi]
push edi
push ebx
push dword [ebp - 0x5b8]
call dword [sym.imp.zbgui.dll_Plugin_Clone]
mov edi, eax
test edi, edi
je 0x411a26
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x194], ax
lea eax, [ebp - 0x192]
push eax
call fcn.0041ba00
push dword [esi]
lea eax, [ebp - 0x194]
push str.icon__ld
push eax
call fcn.00402d1a
push dword [esi]
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x5a4]
push str._s_ld
push eax
call fcn.00402d33
add esp, 0x28
lea eax, [ebp - 0x5a4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41199c
mov eax, dword [0x43c0dc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 1
lea edx, [ebp - 0x194]
mov dword [ebp - 0x5cc], eax
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jne 0x41195e
mov ecx, dword [ebp - 0x5cc]
lea edx, [ebp - 0x194]
push 1
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x30]
mov esi, eax
lea eax, [ebp - 0x5a4]
push eax
push esi
mov ecx, dword [esi]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x5cc]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov esi, dword [ebp - 0x5bc]
mov eax, dword [edi]
push 0
push edi
call dword [eax + 0x1ac]
mov eax, dword [edi]
push 2
push edi
call dword [eax + 0x1b4]
mov eax, dword [edi]
push 0x78
push edi
call dword [eax + 0x1bc]
mov eax, dword [edi]
push 0x5a
push edi
call dword [eax + 0x1c4]
mov eax, dword [edi]
lea ecx, [ebp - 0x194]
push ecx
push edi
call dword [eax + 0x1cc]
jmp 0x4119f7
cmp dword [ebp - 0x5b0], 0x18
jge 0x4119f7
lea eax, [esi + 0x104c]
push eax
mov eax, dword [ebp - 0x5a8]
add eax, 0xffffefb8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x5a4]
push eax
push dword [ebp - 0x5a8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x5a8]
mov eax, dword [esi]
mov dword [ecx + 0x20c], eax
mov eax, dword [ebp - 0x5b4]
mov eax, dword [eax + 0x1068]
mov dword [ecx + 0x208], eax
mov dword [ecx - 0x104c], edi
mov ecx, dword [edi]
lea eax, [esi + 4]
push eax
push edi
call dword [ecx + 0xa8]
push dword [esi]
mov eax, dword [edi]
push edi
call dword [eax + 0x10c]
mov eax, dword [edi]
push 1
push edi
call dword [eax + 0xb0]
mov esi, dword [esi + 0xcd20]
mov dword [ebp - 0x5bc], esi
mov eax, dword [ebp - 0x5ac]
mov ecx, dword [ebp - 0x5c0]
inc eax
inc dword [ebp - 0x5b0]
add dword [ebp - 0x5a8], 0x125c
mov dword [ebp - 0x5ac], eax
test esi, esi
jne 0x41185c
mov esi, dword [ebp - 0x5c4]
push 0
push esi
mov eax, dword [esi]
call dword [eax + 0x114]
push dword [ebp - 0x5c8]
push 0
push 0x410c67
call fcn.00419b63
mov edi, dword [ebp - 0x5b4]
add esp, 0xc
mov ecx, dword [edi + 0x106c]
test ecx, ecx
je 0x411a92
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0xb0]
mov eax, dword [ebx]
push 1
push ebx
call dword [eax + 0xb0]
push 1
push esi
call dword [sym.imp.zbgui.dll_Plugin_Redraw]
mov dword [edi + 0x106c], ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041813f
mov esp, ebp
pop ebp
ret