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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0800
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x56b114]
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
mov dword [ebp - 0x30], esi
lea ebx, [esi + 8]
push 0x5174b8
mov edx, ebx
lea ecx, [ebp - 0x28]
call fcn.004131e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call sym.R2ClientInstall.exe_int___cdecl_FileOps::MakeSureDirExist_wchar_t_const__
add esp, 8
mov dword [ebp - 0x58], 0
xor eax, eax
mov dword [ebp - 0x54], 7
lea ecx, [ebp - 0x68]
mov word [ebp - 0x68], ax
push 3
push 0x5174d0
call fcn.0040e140
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x48]
call fcn.0040dc80
push 0
push 0x80
push 2
mov byte [ebp - 4], 0
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
push 0
cmovae eax, dword [ebp - 0x48]
push 2
push 0x40000000
push eax
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
jne 0x41778c
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x417735
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41772b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41791b
push edx
push ecx
call fcn.004c3d01
add esp, 8
mov edx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp edx, 8
jb 0x41785f
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41777d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417920
push edx
push ecx
call fcn.004c3d01
add esp, 8
jmp 0x41785f
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push eax
push 0x8f
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
push 0
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x41780e
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417804
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417925
push edx
push ecx
call fcn.004c3d01
add esp, 8
mov edx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp edx, 8
jb 0x41785c
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417852
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41792a
push edx
push ecx
call fcn.004c3d01
add esp, 8
mov esi, dword [ebp - 0x30]
cmp dword [ebx + 0x14], 8
jb 0x417867
mov ebx, dword [ebx]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x29]
push eax
push dword [esi + 4]
call sym.R2ClientInstall.exe_public:_int___thiscall_CHCIZip::UnZipFile_struct_HWND_____wchar_t_const___wchar_t_const__
push 0
push 0
test eax, eax
je 0x41788e
push 0x466
jmp 0x417893
push 0x467
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4178c9
test al, 0x10
jne 0x4178c9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4178ff
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4178f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41792f
push edx
push ecx
call fcn.004c3d01
add esp, 8
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.004c360c
mov esp, ebp
pop ebp
ret
call fcn.004cac9c
call fcn.004cac9c
call fcn.004cac9c
call fcn.004cac9c
call fcn.004cac9c
int3