Function at 0x448950
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00467d60
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x448999
mov eax, 0xd
jmp 0x448c29
cmp dword [ebp + 0xc], 0
jbe 0x448c1c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x448c1c
push str.SETUPAQ.CAB
push 0x4e4b28
push 0x4bb51c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x224], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x21c], 0x100000
mov eax, dword [ebp - 0x21c]
imul eax, eax, 0x64
cmp dword [ebp - 0x228], eax
jbe 0x448a37
mov eax, dword [ebp - 0x228]
xor edx, edx
mov ecx, 0x64
div ecx
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x228]
push eax
push str.ExtractDATARes____LgData_d_oct_MaxDataRead_d_oct
call fcn.00456fc0
add esp, 0xc
mov ecx, dword [ebp - 0x228]
xor edx, edx
push edx
push ecx
push 0x28
push 0
mov ecx, 0x4d09c0
call fcn.00412370
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x21c]
jbe 0x448b83
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x234], 0
cmp dword [ebp - 0x230], 0
jbe 0x448b81
cmp dword [0x4e8c34], 0
jne 0x448b81
push 0
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x230]
push eax
push str.ExtractDATARes____dwLgRemain_d_dwNbOfBytesToWrite_d_Bytes_Write_d_oct
call fcn.00456fc0
add esp, 0x10
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [ebp - 0x21c]
jbe 0x448b1d
mov edx, dword [ebp - 0x230]
sub edx, dword [ebp - 0x21c]
mov dword [ebp - 0x230], edx
jmp 0x448b1f
jmp 0x448b81
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x21c]
jbe 0x448b3b
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x22c], ecx
jmp 0x448b47
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x22c], edx
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x234]
add eax, dword [ebp - 0x220]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
xor edx, edx
push edx
push ecx
mov ecx, 0x4d09c0
call fcn.00412760
jmp 0x448a9e
jmp 0x448ba1
push 0
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, 0x4d09c0
call fcn.004128a0
mov edx, dword [ebp + 0xc]
xor eax, eax
push eax
push edx
push 0x64
push 0x28
mov ecx, 0x4d09c0
call fcn.00412370
cmp dword [ebp + 0xc], 0
jbe 0x448bf1
push 0x4d5fa8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x448bf1
push 0x4d5fa8
call fcn.0040d340
add esp, 4
mov ecx, dword [0x4d61c0]
push ecx
push 0x4d5fa8
lea edx, [ebp - 0x218]
push edx
call fcn.00454fe0
add esp, 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret