Function at 0x411180
Capabilities:
Check if file exists
Create directory
Delete file
Extract resource via kernel32 functions
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7f4
mov eax, dword [0x5e1040]
xor eax, esp
mov dword [esp + 0x7f0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.00410f50
test al, al
je 0x411723
push 0x208
lea eax, [esp + 0x5f4]
push 0
push eax
call fcn.00547c40
add esp, 0xc
lea eax, [esp + 0x5f0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4112b0
lea ecx, [esp + 0x10]
call fcn.00407470
mov esi, eax
cmp esi, 0x5e2260
je 0x411271
mov ecx, dword [0x5e2274]
cmp ecx, 7
jbe 0x411231
mov eax, dword [0x5e2260]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x411227
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41173c
mov eax, edx
push ecx
push eax
call fcn.004224f3
add esp, 8
mov dword [0x5e2270], 0
xor eax, eax
mov dword [0x5e2274], 7
mov word [0x5e2260], ax
movups xmm0, xmmword [esi]
movups xmmword [0x5e2260], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x5e2270], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x4113f6
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4113ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41173c
jmp 0x4113ec
lea ecx, [esp + 0x5f0]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4112c0
sub ecx, edx
lea eax, [esp + 0x5f0]
sar ecx, 1
push ecx
push eax
mov ecx, 0x5e2260
call fcn.00403550
push 0xf
push str.PythonAssiantzz
mov ecx, 0x5e2260
call fcn.00403790
push 1
push 0x5d2678
mov ecx, 0x5e2260
call fcn.00403790
cmp dword [0x5e2274], 7
mov eax, 0x5e2260
push 0
cmova eax, dword [0x5e2260]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4113f6
lea ecx, [esp + 0x10]
call fcn.00407470
mov esi, eax
cmp esi, 0x5e2260
je 0x4113ba
mov ecx, dword [0x5e2274]
cmp ecx, 7
jbe 0x41137a
mov eax, dword [0x5e2260]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x411370
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411741
mov eax, edx
push ecx
push eax
call fcn.004224f3
add esp, 8
mov dword [0x5e2270], 0
xor eax, eax
mov dword [0x5e2274], 7
mov word [0x5e2260], ax
movups xmm0, xmmword [esi]
movups xmmword [0x5e2260], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x5e2270], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x4113f6
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4113ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411741
push ecx
push edx
call fcn.004224f3
add esp, 8
mov ecx, dword [0x5e2270]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 7
jb 0x411746
cmp dword [0x5e2274], 7
mov eax, 0x5e2260
push 7
cmova eax, dword [0x5e2260]
push 0x5d267c
push ecx
push eax
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.00404fa0
lea eax, [esp + 0x10]
mov ecx, 0x5e2278
push eax
call fcn.00409c00
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 0x100000
jg 0x411456
test eax, eax
jne 0x411467
cmp dword [esp + 0x24], 7
lea eax, [esp + 0x10]
cmova eax, dword [esp + 0x10]
push eax
call esi
cmp dword [esp + 0x24], 7
lea eax, [esp + 0x10]
push dword [esp + 0x20]
cmova eax, dword [esp + 0x14]
mov ecx, 0x5e227c
push eax
call fcn.00403550
cmp dword [esp + 0x24], 7
lea eax, [esp + 0x10]
mov dword [0x5e2294], 0x400
cmova eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4114bd
test al, 0x10
je 0x4114bd
cmp dword [esp + 0x24], 7
lea eax, [esp + 0x10]
cmova eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x4114f9
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4114ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41174b
push ecx
push edx
call fcn.004224f3
add esp, 8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x411723
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 3
call fcn.004b73d0
add esp, 4
push edi
call fcn.0042cca0
add esp, 4
push 0x5d2640
push 0x81
call fcn.00425f10
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x411723
push esi
call fcn.00425f10
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
push esi
test eax, eax
jne 0x411565
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x411723
call fcn.00425f10
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x411723
push edi
call fcn.0054cf40
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41159f
push edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.00547de0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0
push edi
push ebx
call fcn.0042d1b0
add esp, 0xc
lea eax, [esp + 0x28]
push 0x5c4
push 0
push eax
call fcn.00547c40
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.0042fe40
lea eax, [esp + 0x48]
mov dword [esp + 0x3c], vtable.DuiLib::INotifyUI.0
push eax
mov dword [esp + 0x44], vtable.DuiLib::IDialogBuilderCallback.0
mov dword [esp + 0x48], vtable.CMsgDispatch_class_CMainWnd_.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xorps xmm0, xmm0
mov dword [esp + 0x70], 0
push 8
movups xmmword [esp + 0x64], xmm0
call fcn.004224c3
lea ecx, [esp + 0x64]
add esp, 4
mov dword [eax + 4], 0
mov dword [esp + 0x60], eax
mov dword [eax], ecx
lea ecx, [esp + 0x74]
mov dword [esp + 0x28], vtable.CMainWnd.3.0
mov dword [esp + 0x3c], vtable.CMainWnd.2.0
mov dword [esp + 0x40], vtable.CMainWnd.1.0
mov dword [esp + 0x44], vtable.CMainWnd.0
call fcn.00423560
lea ecx, [esp + 0x51c]
call fcn.00408960
push 0xb0
mov dword [esp + 0x5c0], 0
mov dword [esp + 0x5c4], 0
mov dword [esp + 0x5c8], 0
call fcn.004224c3
add esp, 4
xorps xmm0, xmm0
mov dword [eax], eax
push 0
push 0
push 0
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push 0
push 0
push 0
mov dword [esp + 0x5d8], eax
xor eax, eax
push 0x96cf0000
movups xmmword [esp + 0x5ec], xmm0
mov word [esp + 0x5ec], ax
lea eax, [esp + 0x44]
push 0x5d268c
push 0
mov ecx, eax
mov dword [esp + 0x5ec], 0
mov dword [esp + 0x604], 0
mov dword [esp + 0x608], 7
mov dword [0x5e46f8], eax
mov byte [esp + 0x5f0], 0
mov byte [esp + 0x60c], 1
call fcn.004300a0
lea ecx, [esp + 0x28]
call fcn.0042fe80
lea ecx, [esp + 0x28]
call fcn.00430480
call fcn.004b7380
lea ecx, [esp + 0x28]
call fcn.00411790
mov ecx, dword [esp + 0x7fc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004224b5
mov esp, ebp
pop ebp
ret 0x10
call fcn.0054c0bc
call fcn.0054c0bc
call fcn.00401370
call fcn.0054c0bc
int3