Function at 0x41c370
Capabilities:
Check if file exists
Create directory
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb4a0
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x5383c4]
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
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004c0a60
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov eax, dword [0x53c198]
test eax, eax
jne 0x41c429
push 0x110
call fcn.004bec3b
mov edi, eax
add esp, 4
mov dword [ebp - 0x14c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x41c41b
push 0x110
push 0
push edi
call fcn.004c0a60
add esp, 0xc
mov ecx, edi
call fcn.00421000
jmp 0x41c41d
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x53c198], eax
push 0x4efca0
push str.7ZDATA
mov ecx, eax
call sym.Install.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x41c620
push edi
call fcn.0041b590
mov ecx, eax
call sym.Install.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
mov ebx, eax
call fcn.0041b590
mov ecx, eax
call sym.Install.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edx, [ebp - 0x114]
mov dword [ebp - 0x14c], eax
dec edx
nop dword [eax]
mov cl, byte [edx + 1]
lea edx, [edx + 1]
test cl, cl
jne 0x41c490
mov eax, dword [str.7zData.7z]
mov dword [edx], eax
mov eax, dword [0x4efc54]
mov dword [edx + 4], eax
mov ax, word [0x4efc58]
mov word [edx + 8], ax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41c501
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00401ed0
add esp, 8
lea eax, [ebp - 0x130]
cmp dword [ebp - 0x11c], 8
mov ecx, esi
cmovae eax, dword [ebp - 0x130]
push eax
call fcn.0041c060
lea ecx, [ebp - 0x130]
call fcn.00404340
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41c54f
push 0
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0
push eax
push dword [ebp - 0x14c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x164]
push eax
call fcn.0041b590
mov ecx, eax
call fcn.00421620
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 1
jb 0x41c571
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.00401ed0
add esp, 8
mov ecx, dword [ebp - 0x150]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x41c5bf
mov edx, dword [ebp - 0x164]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41c5b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c63c
push ecx
push edx
call fcn.004bec6b
add esp, 8
lea eax, [esi + 8]
mov dword [ebp - 0x154], 0
neg esi
mov dword [ebp - 0x150], 0xf
lea ecx, [ebp - 0x114]
mov byte [ebp - 0x164], 0
sbb esi, esi
and esi, eax
cmp dword [ebp - 0x134], 8
push esi
lea eax, [ebp - 0x148]
cmovae eax, dword [ebp - 0x148]
push ecx
push eax
call fcn.00408860
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x148]
call fcn.00404340
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.004bebdd
mov esp, ebp
pop ebp
ret
call fcn.004c8fd6
int3