Function at 0x411910
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 [0x5df040]
xor eax, esp
mov dword [esp + 0x7f0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.00411700
test al, al
je 0x411eb3
push 0x208
lea eax, [esp + 0x5f4]
push 0
push eax
call fcn.00548bf0
add esp, 0xc
lea eax, [esp + 0x5f0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x411a40
lea ecx, [esp + 0x10]
call fcn.00407610
mov esi, eax
cmp esi, 0x5e0268
je 0x411a01
mov ecx, dword [0x5e027c]
cmp ecx, 7
jbe 0x4119c1
mov eax, dword [0x5e0268]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4119b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ecc
mov eax, edx
push ecx
push eax
call fcn.004234d3
add esp, 8
mov dword [0x5e0278], 0
xor eax, eax
mov dword [0x5e027c], 7
mov word [0x5e0268], ax
movups xmm0, xmmword [esi]
movups xmmword [0x5e0268], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x5e0278], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x411b86
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411b7c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ecc
jmp 0x411b7c
lea ecx, [esp + 0x5f0]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411a50
sub ecx, edx
lea eax, [esp + 0x5f0]
sar ecx, 1
push ecx
push eax
mov ecx, 0x5e0268
call fcn.004034a0
push 0xf
push str.PythonAssiantzz
mov ecx, 0x5e0268
call fcn.004036e0
push 1
push 0x5d1044
mov ecx, 0x5e0268
call fcn.004036e0
cmp dword [0x5e027c], 7
mov eax, 0x5e0268
push 0
cmova eax, dword [0x5e0268]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x411b86
lea ecx, [esp + 0x10]
call fcn.00407610
mov esi, eax
cmp esi, 0x5e0268
je 0x411b4a
mov ecx, dword [0x5e027c]
cmp ecx, 7
jbe 0x411b0a
mov eax, dword [0x5e0268]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x411b00
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ed1
mov eax, edx
push ecx
push eax
call fcn.004234d3
add esp, 8
mov dword [0x5e0278], 0
xor eax, eax
mov dword [0x5e027c], 7
mov word [0x5e0268], ax
movups xmm0, xmmword [esi]
movups xmmword [0x5e0268], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x5e0278], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [esp + 0x24]
cmp ecx, 7
jbe 0x411b86
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411b7c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ed1
push ecx
push edx
call fcn.004234d3
add esp, 8
mov ecx, dword [0x5e0278]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 7
jb 0x411ed6
cmp dword [0x5e027c], 7
mov eax, 0x5e0268
push 7
cmova eax, dword [0x5e0268]
push str.log.txt
push ecx
push eax
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.00404fd0
lea eax, [esp + 0x10]
mov ecx, 0x5e0280
push eax
call fcn.0040a360
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 0x100000
jg 0x411be6
test eax, eax
jne 0x411bf7
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, 0x5e0284
push eax
call fcn.004034a0
cmp dword [esp + 0x24], 7
lea eax, [esp + 0x10]
mov dword [0x5e029c], 0x400
cmova eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411c4d
test al, 0x10
je 0x411c4d
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 0x411c89
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411c7f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411edb
push ecx
push edx
call fcn.004234d3
add esp, 8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x411eb3
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 3
call fcn.004b83b0
add esp, 4
push edi
call fcn.0042dc80
add esp, 4
push 0x5d1624
push 0x81
call fcn.00426ef0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x411eb3
push esi
call fcn.00426ef0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
push esi
test eax, eax
jne 0x411cf5
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x411eb3
call fcn.00426ef0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x411eb3
push edi
call fcn.0054def0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x411d2f
push edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.00548d90
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0
push edi
push ebx
call fcn.0042e190
add esp, 0xc
lea eax, [esp + 0x28]
push 0x5c4
push 0
push eax
call fcn.00548bf0
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.00430e20
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.004234a3
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.00424540
lea ecx, [esp + 0x51c]
call fcn.004090c0
push 0xb0
mov dword [esp + 0x5c0], 0
mov dword [esp + 0x5c4], 0
mov dword [esp + 0x5c8], 0
call fcn.004234a3
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 0x5d1618
push 0
mov ecx, eax
mov dword [esp + 0x5ec], 0
mov dword [esp + 0x604], 0
mov dword [esp + 0x608], 7
mov dword [0x5e2700], eax
mov byte [esp + 0x5f0], 0
mov byte [esp + 0x60c], 1
call fcn.00431080
lea ecx, [esp + 0x28]
call fcn.00430e60
lea ecx, [esp + 0x28]
call fcn.00431460
call fcn.004b8360
lea ecx, [esp + 0x28]
call fcn.00411f20
mov ecx, dword [esp + 0x7fc]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423495
mov esp, ebp
pop ebp
ret 0x10
call fcn.0054d06c
call fcn.0054d06c
call fcn.00401370
call fcn.0054d06c
int3