Function at 0x41ae10
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 0x494c31
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x4d53a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x170], ecx
mov byte [ebp - 0x114], 0
push 0x103
push 0
lea eax, [ebp - 0x113]
push eax
call fcn.004726b0
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
lea edx, [ebp - 0x114]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push 0x4992bc
push 0x4992c4
call fcn.004165e0
mov ecx, eax
call fcn.0041ef60
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 0
jne 0x41aeb3
jmp 0x41b0d0
mov eax, dword [ebp - 0x168]
push eax
call fcn.004165e0
mov ecx, eax
call fcn.0041ef60
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x184], eax
mov edx, dword [ebp - 0x168]
push edx
call fcn.004165e0
mov ecx, eax
call fcn.0041ef60
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x114]
add eax, 0xffffffff
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x15d], dl
add dword [ebp - 0x164], 1
cmp byte [ebp - 0x15d], 0
jne 0x41af15
mov edi, dword [ebp - 0x164]
mov eax, dword [0x4992cc]
mov dword [edi], eax
mov ecx, dword [0x4992d0]
mov dword [edi + 4], ecx
mov dx, word [0x4992d4]
mov word [edi + 8], dx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41afac
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x12c]
push edx
call fcn.00401990
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.00403570
push eax
mov ecx, dword [ebp - 0x170]
call fcn.0041ab40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00403bd0
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 dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0xffffffff
je 0x41b015
mov dword [ebp - 0x17c], 0
push 0
lea ecx, [ebp - 0x17c]
push ecx
mov edx, dword [ebp - 0x180]
push edx
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x16c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x15c]
push eax
call fcn.004165e0
mov ecx, eax
call fcn.004216e0
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x18c]
call fcn.00403d00
push eax
lea edx, [ebp - 0x144]
push edx
call fcn.00401990
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x15c]
call fcn.00403f90
cmp dword [ebp - 0x170], 0
je 0x41b085
mov eax, dword [ebp - 0x170]
add eax, 8
mov dword [ebp - 0x174], eax
jmp 0x41b08f
mov dword [ebp - 0x174], 0
mov ecx, dword [ebp - 0x174]
push ecx
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x144]
call fcn.00403570
push eax
call fcn.0040b650
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.00403bd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470931
mov esp, ebp
pop ebp
ret