Function at 0x41ce70
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0x34
mov eax, 0x4774e1
call fcn.00450508
mov esi, edx
mov dword [ebp - 0x34], esi
mov ebx, ecx
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1f
push eax
push str.CopyResourceToFileOrBuffer
lea ecx, [ebp - 0x40]
call fcn.0041dfa0
xor edx, edx
mov dword [ebp - 4], edx
mov ecx, edx
or dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], edx
test ebx, ebx
je 0x41d0e9
mov edi, dword [ebp + 8]
test esi, esi
jne 0x41cec9
test edi, edi
jne 0x41d0e9
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x41ced8
test edi, edi
jne 0x41d0e9
cmp dword [ebp + 0x10], ecx
je 0x41d0e9
test edi, edi
jne 0x41cef7
test esi, esi
je 0x41cef7
mov ecx, esi
mov dword [ebp - 0x20], ecx
cmp word [esi], dx
je 0x41d0e9
cmp dword [0x4a02b0], edx
jle 0x41cf0b
mov dword [ebp - 0x10], 0x2e3
jmp 0x41d0f0
test ecx, ecx
je 0x41cf8a
movzx eax, bl
push 9
pop esi
lea eax, [eax*2 + 1]
mov dword [ebp - 0x2c], eax
push edx
push 0x80
push eax
push edx
push 5
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xffffffff
jne 0x41cf77
cmp eax, 0x20
je 0x41cf50
cmp eax, 5
jne 0x41cf69
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
push 0
pop edx
jns 0x41cf1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x41d0f0
test bl, bl
je 0x41cf9a
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41cf9a
test edi, edi
je 0x41cf97
mov esi, dword [edi]
mov dword [ebp - 0x24], esi
mov dword [edi], edx
jmp 0x41cf9a
mov dword [ebp - 0x24], edx
push dword [0x4a036c]
call fcn.00454c58
mov ebx, eax
mov dword [ebp - 0x2c], ebx
pop ecx
test ebx, ebx
jne 0x41cfb8
mov dword [ebp - 0x10], 8
jmp 0x41d010
and dword [ebp - 0x10], 0
jmp 0x41d0b7
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x41d007
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x41d0ae
cmp dword [ebp - 0x20], 0
je 0x41d06c
push 0
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41cffe
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x28]
je 0x41d0ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x2c]
call fcn.00454c63
pop ecx
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x41d0f0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x41d0f0
push 9
pop edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x41d0f0
cmp eax, 0x20
je 0x41d057
cmp eax, 5
jne 0x41d0f0
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 1
jns 0x41d030
jmp 0x41d0f0
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
lea eax, [esi + ebx]
cmp eax, edx
jbe 0x41d085
mov esi, edx
push 0x7a
sub esi, ebx
pop ebx
mov dword [ebp - 0x10], ebx
jmp 0x41d088
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
push esi
push dword [ebp - 0x2c]
add eax, ecx
push eax
call fcn.00451610
add dword [ebp - 0x18], esi
add esp, 0xc
test edi, edi
je 0x41d0a3
add dword [edi], esi
test ebx, ebx
jne 0x41d007
mov ebx, dword [ebp - 0x2c]
cmp dword [0x4a02b0], 0
jg 0x41d0dd
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
and dword [ebp - 0x28], 0
push eax
push dword [0x4a036c]
push ebx
push dword [ebp - 0x30]
call dword [ebp + 0x10]
test eax, eax
jne 0x41cfc1
jmp 0x41cffe
mov dword [ebp - 0x10], 0x2e3
jmp 0x41d007
mov dword [ebp - 0x10], 0x57
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0041e015
mov eax, esi
call fcn.004504d1
ret