Function at 0x403c7f
Capabilities:
Delete file
Extract resource via kernel32 functions
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fe1c
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4607a0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x26c], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x240], eax
cmp dword [ebp + 8], 0x13f0
jne 0x403cc5
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x270], ecx
mov edx, dword [ebp - 0x270]
sub edx, 0x3e9
mov dword [ebp - 0x270], edx
cmp dword [ebp - 0x270], 0xa
ja case.0x403c78.1
mov eax, dword [ebp - 0x270]
jmp dword [eax*4 + 0x404098]
mov dword [ebp + 8], 0x13f1
jmp 0x403cc5
mov dword [ebp + 8], 0x13f3
jmp 0x403cc5
mov dword [ebp + 8], 0x13f3
jmp 0x403cc5
mov dword [ebp + 8], 0x13f4
jmp 0x403cc5
mov dword [ebp + 8], 0x13f5
jmp 0x403cc5
mov dword [ebp + 8], 0x13f6
jmp 0x403cc5
mov dword [ebp + 8], 0x13f7
jmp 0x403cc5
mov dword [ebp + 8], 0x13f7
push 0x4538b0
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x403cf2
xor eax, eax
jmp 0x40407d
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403d16
xor eax, eax
jmp 0x40407d
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x403d40
xor eax, eax
jmp 0x40407d
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x403d5d
xor eax, eax
jmp 0x40407d
push 0x208
push 0
lea edx, [ebp - 0x224]
push edx
call fcn.0043f140
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
push 0x104
lea ecx, [ebp - 0x224]
push ecx
call fcn.00403200
mov dword [ebp - 0x22c], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00402780
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0xffffffff
jne 0x403ff3
cmp dword [ebp - 0x18], 0
je 0x403e07
mov dword [ebp - 0x258], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00402ca0
mov eax, dword [ebp - 0x258]
jmp 0x40407d
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
push str.CreateFile_Error__d__s
lea edx, [ebp - 0x230]
push edx
call fcn.00404680
add esp, 0x10
lea ecx, [ebp - 0x230]
call fcn.0043c600
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x248]
call fcn.004027a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00404660
push 0x4538f0
lea ecx, [ebp - 0x248]
call fcn.00402a00
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0x403ebd
mov dword [ebp - 0x25c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00402ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00402ca0
mov eax, dword [ebp - 0x25c]
jmp 0x40407d
cmp dword [ebp - 0x24c], 0x20
jne 0x403fa2
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x250]
call fcn.004027a0
mov byte [ebp - 4], 2
push str..bak
lea ecx, [ebp - 0x250]
call fcn.004029d0
mov dword [ebp - 0x254], 0
push 1
lea ecx, [ebp - 0x250]
call fcn.0043c600
push eax
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x403f39
mov dword [ebp - 0x254], 1
push 4
push 0
lea ecx, [ebp - 0x250]
call fcn.0043c600
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x254], 0
jne 0x403f91
mov dword [ebp - 0x24c], 1
mov dword [ebp - 0x260], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
call fcn.00402ca0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00402ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00402ca0
mov eax, dword [ebp - 0x260]
jmp 0x40407d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
call fcn.00402ca0
jmp 0x403fe2
mov dword [ebp - 0x24c], 2
mov dword [ebp - 0x264], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00402ca0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00402ca0
mov eax, dword [ebp - 0x264]
jmp 0x40407d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00402ca0
jmp 0x403ff5
jmp 0x404002
mov eax, 1
test eax, eax
jne 0x403dab
mov dword [ebp - 0x238], 0
push 0
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x404042
mov edx, dword [ebp + 0x10]
mov dword [edx], 3
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x22c], 0
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x268], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00402ca0
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043ec15
mov esp, ebp
pop ebp
ret 0xc