Function at 0x40b4b0
Capabilities:
Check if file exists
Create process on windows
Delete file
Extract resource via kernel32 functions
Move file

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x439178
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x444690]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push ecx
pop edi
mov dword [ebp - 4], 0
or edi, edi
je 0x40b74f
mov edx, edi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40b4f1
sub edx, ecx
sar edx, 1
je 0x40b74f
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or eax, eax
je 0x40b74f
push 0x14
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40b72f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40b74f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b74f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
or eax, eax
je 0x40b74f
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, ebx
push eax
pop ecx
mov byte [ebp - 4], 1
call fcn.00404f70
add esp, 4
or eax, eax
je 0x40b6ed
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
cmp ebx, esi
je 0x40b6ed
push 0x440f7c
lea eax, [ebp - 0x18]
push edi
push eax
mov dword [ebp - 0x18], 0
call fcn.00420ea3
add esp, 0xc
or eax, eax
jne 0x40b6ed
mov eax, dword [ebp - 0x18]
or eax, eax
je 0x40b6ed
push eax
sub esi, ebx
push esi
push 1
push ebx
call fcn.00421109
push dword [ebp - 0x18]
sub ebx, ebx
cmp esi, eax
sete bl
call fcn.004211f3
add esp, 0x14
or ebx, ebx
je 0x40b6ed
mov eax, dword [0x444008]
mov ecx, 0x444008
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x6b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004043c0
test eax, eax
je 0x40b6c7
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], 0
je 0x40b6c7
push edi
lea ecx, [ebp - 0x14]
call fcn.00404240
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0040de20
push esi
lea ecx, [ebp - 0x14]
call fcn.0040dd20
or eax, eax
je 0x40b699
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
or eax, eax
je 0x40b699
push 1
push 0
push 0
push dword [ebp - 0x14]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x14]
pushfd
xor esi, esi
inc esi
popfd
call fcn.004042f0
lea ecx, [ebp - 0x1c]
call fcn.004042f0
lea ecx, [ebp - 0x28]
call fcn.00404fe0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
lea ecx, [ebp - 0x14]
sub esi, esi
call fcn.004042f0
lea ecx, [ebp - 0x1c]
call fcn.004042f0
lea ecx, [ebp - 0x28]
call fcn.00404fe0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
lea ecx, [ebp - 0x1c]
sub esi, esi
call fcn.004042f0
lea ecx, [ebp - 0x28]
call fcn.00404fe0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
lea ecx, [ebp - 0x28]
xor esi, esi
call fcn.00404fe0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret