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

Disassembly:
sub esp, 0x728
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x724], eax
push ebx
push ebp
push esi
push edi
push 0x206
mov ebx, ecx
xor ebp, ebp
lea ecx, [esp + 0x32a]
mov edi, edx
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x24], edi
mov word [esp + 0x330], ax
call fcn.1000a0a0
add esp, 0xc
cmp ebx, ebp
je 0x10004a76
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
test eax, eax
je 0x10004a76
cmp edi, ebp
je 0x10004a76
push 0x1000e430
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
call edi
push 0x206
push ebp
cmp dword [esp + 0x744], ebp
je 0x1000490e
lea eax, [esp + 0x26]
xor edx, edx
push eax
mov dword [esp + 0x1c], ebp
mov word [esp + 0x28], dx
call fcn.1000a0a0
add esp, 0xc
push 0x1000e5a8
lea ecx, [esp + 0x20]
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
lea esi, [esp + 0x18]
lea edi, [esp + 0x20]
xor ecx, ecx
call fcn.10003520
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 4
mov edi, eax
push ebx
lea eax, [esp + 0x20]
push eax
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebp
lea edx, [esp + 0x28]
push edx
push 0x80000000
call ebx
test eax, eax
jne 0x10004a63
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
test edi, edi
je 0x10004a63
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10004a63
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0x1a], 0x5c
je 0x1000488b
push 0x1000e52c
lea eax, [esp + 0x20]
push eax
call esi
push 0x1000e5dc
lea ecx, [esp + 0x20]
push ecx
call esi
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x28]
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x10004a63
mov ecx, dword [esp + 0x10]
push ecx
lea esi, [esp + 0x18]
lea edi, [esp + 0x328]
xor ecx, ecx
mov dword [esp + 0x18], 0x208
call fcn.10003520
mov edx, dword [esp + 0x14]
add esp, 4
push edx
mov esi, eax
call ebp
test esi, esi
je 0x10004a63
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10004a63
mov edx, dword [esp + 0x18]
mov ecx, edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x10004a63
lea ecx, [esp + 0x26]
xor eax, eax
push ecx
mov word [esp + 0x28], ax
call fcn.1000a0a0
push 0x206
lea eax, [esp + 0x53e]
xor edx, edx
push ebp
push eax
mov word [esp + 0x544], dx
call fcn.1000a0a0
mov edx, dword [0x100126bc]
add esp, 0x18
push 0x208
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x1c]
push eax
call esi
cmp eax, ebp
je 0x10004973
lea ecx, [esp + eax*2 + 0x1a]
cmp word [ecx], 0x5c
je 0x10004973
dec eax
sub ecx, 2
cmp eax, ebp
jne 0x10004965
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Temp.
lea edx, [esp + 0x20]
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0x24], cx
call esi
push ebx
lea eax, [esp + 0x20]
push eax
call esi
push ebp
push 0x80
push 2
push ebp
push 1
push 0x40000000
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100049c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10004a63
jmp 0x10004a27
push 0xc8
lea edx, [esp + 0x260]
push ebp
mov ecx, 0xe
mov esi, str.Find_Associate_Execute_File
lea edi, [esp + 0x22c]
push edx
mov dword [esp + 0x20], ebp
rep movsd dword es:[edi], dword [esi]
call fcn.1000a0a0
add esp, 0xc
push ebp
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea edx, [esp + 0x230]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x324]
push eax
lea ecx, [esp + 0x530]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHELL32.dll_FindExecutableW]
mov esi, eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, 0x20
jb 0x10004a63
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x324]
push ecx
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
neg eax
sbb eax, eax
neg eax
jmp 0x10004a78
xor eax, eax
mov ecx, dword [esp + 0x734]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000669a
add esp, 0x728
ret