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

Disassembly:
push 0x34
mov eax, 0x47d01d
call fcn.004542d2
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.0041e3a4
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 0x41d528
mov edi, dword [ebp + 8]
test esi, esi
jne 0x41d308
test edi, edi
jne 0x41d528
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x41d317
test edi, edi
jne 0x41d528
cmp dword [ebp + 0x10], ecx
je 0x41d528
test edi, edi
jne 0x41d336
test esi, esi
je 0x41d336
mov ecx, esi
mov dword [ebp - 0x20], ecx
cmp word [esi], dx
je 0x41d528
cmp dword [0x4a7368], edx
jle 0x41d34a
mov dword [ebp - 0x10], 0x2e3
jmp 0x41d52f
test ecx, ecx
je 0x41d3c9
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 0x41d3b6
cmp eax, 0x20
je 0x41d38f
cmp eax, 5
jne 0x41d3a8
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 0x41d35e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x41d52f
test bl, bl
je 0x41d3d9
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x41d3d9
test edi, edi
je 0x41d3d6
mov esi, dword [edi]
mov dword [ebp - 0x24], esi
mov dword [edi], edx
jmp 0x41d3d9
mov dword [ebp - 0x24], edx
push dword [0x4a7430]
call fcn.00461b84
mov ebx, eax
mov dword [ebp - 0x2c], ebx
pop ecx
test ebx, ebx
jne 0x41d3f7
mov dword [ebp - 0x10], 8
jmp 0x41d44f
and dword [ebp - 0x10], 0
jmp 0x41d4f6
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x41d446
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x41d4ed
cmp dword [ebp - 0x20], 0
je 0x41d4ab
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 0x41d43d
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x28]
je 0x41d4ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x2c]
call fcn.0045d3d7
pop ecx
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x41d52f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x41d52f
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 0x41d52f
cmp eax, 0x20
je 0x41d496
cmp eax, 5
jne 0x41d52f
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 1
jns 0x41d46f
jmp 0x41d52f
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
lea eax, [esi + ebx]
cmp eax, edx
jbe 0x41d4c4
mov esi, edx
push 0x7a
sub esi, ebx
pop ebx
mov dword [ebp - 0x10], ebx
jmp 0x41d4c7
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
push esi
push dword [ebp - 0x2c]
add eax, ecx
push eax
call fcn.00455260
add dword [ebp - 0x18], esi
add esp, 0xc
test edi, edi
je 0x41d4e2
add dword [edi], esi
test ebx, ebx
jne 0x41d446
mov ebx, dword [ebp - 0x2c]
cmp dword [0x4a7368], 0
jg 0x41d51c
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
and dword [ebp - 0x28], 0
push eax
push dword [0x4a7430]
push ebx
push dword [ebp - 0x30]
call dword [ebp + 0x10]
test eax, eax
jne 0x41d400
jmp 0x41d43d
mov dword [ebp - 0x10], 0x2e3
jmp 0x41d446
mov dword [ebp - 0x10], 0x57
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0041e418
mov eax, esi
call fcn.004542a0
ret