Function at 0x448340
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 [0x4cd724]
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.004677c0
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x448389
mov eax, 0xd
jmp 0x448619
cmp dword [ebp + 0xc], 0
jbe 0x44860c
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 0x44860c
push str.SETUPAQ.CAB
push 0x4e3708
push 0x4ba304
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 0x448427
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.00456a00
add esp, 0xc
mov ecx, dword [ebp - 0x228]
xor edx, edx
push edx
push ecx
push 0x28
push 0
mov ecx, 0x4cf9c0
call fcn.00412300
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x21c]
jbe 0x448573
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 0x448571
cmp dword [0x4e7810], 0
jne 0x448571
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.00456a00
add esp, 0x10
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [ebp - 0x21c]
jbe 0x44850d
mov edx, dword [ebp - 0x230]
sub edx, dword [ebp - 0x21c]
mov dword [ebp - 0x230], edx
jmp 0x44850f
jmp 0x448571
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x21c]
jbe 0x44852b
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x22c], ecx
jmp 0x448537
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, 0x4cf9c0
call fcn.004126f0
jmp 0x44848e
jmp 0x448591
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, 0x4cf9c0
call fcn.00412830
mov edx, dword [ebp + 0xc]
xor eax, eax
push eax
push edx
push 0x64
push 0x28
mov ecx, 0x4cf9c0
call fcn.00412300
cmp dword [ebp + 0xc], 0
jbe 0x4485e1
push 0x4d4b88
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4485e1
push 0x4d4b88
call fcn.0040d2e0
add esp, 4
mov ecx, dword [0x4d4da0]
push ecx
push 0x4d4b88
lea edx, [ebp - 0x218]
push edx
call fcn.00454a20
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.004677af
mov esp, ebp
pop ebp
ret