Function at 0x40925f
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Delete file
Extract resource via kernel32 functions
Get file size
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4a9c
call fcn.0040d420
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x694]
cmp dword [eax + 0xc34], 3
push edi
jne 0x4094c5
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x698]
call fcn.00407995
test eax, eax
je 0x4094c5
mov edi, dword [esp + 0xc]
xor ebx, ebx
cmp dword [edi + 0x34c], 2
push 0x410aa4
jne 0x4093c8
push 0x72
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
cmp eax, ebx
je 0x4092de
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
je 0x4092de
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [esp + 0xc], eax
jmp 0x4092e2
mov dword [esp + 0xc], ebx
cmp dword [esp + 0xc], ebx
je 0x4094c7
mov word [esp + 0xaa8], bx
mov ebx, 0x1ffe
push ebx
lea eax, [esp + 0xaae]
push 0
push eax
call sub.msvcrt.dll_memset
and word [esp + 0x2ab4], 0
push ebx
lea eax, [esp + 0x2aba]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov ebx, 0xfff
push ebx
lea eax, [esp + 0xaac]
push eax
push 0xffffffffffffffff
push dword [esp + 0x18]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push dword [edi + 0x564]
lea ecx, [edi + 0x350]
push dword [edi + 0x56c]
mov dword [esp + 0x14], ecx
push dword [edi + 0x568]
push dword [edi + 0x57c]
push dword [edi + 0x578]
call fcn.004051ad
push eax
push dword [edi + 0x23c]
mov ecx, dword [esp + 0x28]
push dword [edi + 0x238]
add edi, 0x24c
push dword [edi - 0x18]
push dword [edi - 0x1c]
push dword [edi - 0x20]
push dword [edi - 0x24]
push dword [edi - 0x28]
push dword [edi - 0x2c]
push dword [edi - 0x34]
push edi
call fcn.004051ad
push eax
lea eax, [esp + 0xaec]
push eax
lea eax, [esp + 0x2af0]
push ebx
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x50
lea eax, [esp + 0x2aa8]
jmp 0x4094b8
push 0x70
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
cmp eax, ebx
je 0x4093ee
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, ebx
je 0x4093ee
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [esp + 0xc], eax
jmp 0x4093f2
mov dword [esp + 0xc], ebx
cmp dword [esp + 0xc], ebx
je 0x4094c5
and word [esp + 0x2aa8], bx
mov ebx, 0x1ffe
push ebx
lea eax, [esp + 0x2aae]
push 0
push eax
call sub.msvcrt.dll_memset
and word [esp + 0xab4], 0
push ebx
lea eax, [esp + 0xaba]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov ebx, 0xfff
push ebx
lea eax, [esp + 0x2aac]
push eax
push 0xffffffffffffffff
push dword [esp + 0x18]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push dword [edi + 0x564]
lea ecx, [edi + 0x350]
push dword [edi + 0x568]
mov dword [esp + 0x14], ecx
push dword [edi + 0x578]
call fcn.004051ad
mov ecx, dword [esp + 0x18]
push eax
push dword [edi + 0x238]
add edi, 0x24c
push dword [edi - 0x1c]
push dword [edi - 0x24]
push dword [edi - 0x2c]
push dword [edi - 0x34]
push edi
call fcn.004051ad
push eax
lea eax, [esp + 0x2ad4]
push eax
lea eax, [esp + 0xad8]
push ebx
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x38
lea eax, [esp + 0xaa8]
push eax
push dword [esi + 0x6b4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor ebx, ebx
mov eax, dword [esi + 0x694]
cmp dword [eax + 0xc34], 4
jne 0x40974d
push 0x40e464
push dword [esi + 0x6b4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esi + 0x6c4], ebx
jne 0x4097c5
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x698]
call fcn.00407995
test eax, eax
je 0x4097c5
push 0x208
lea eax, [esp + 0x9e]
push ebx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], 0x100
mov dword [esp + 0x28], ebx
mov word [esp + 0xa4], bx
call sub.msvcrt.dll_memset
push 0x7fe
lea eax, [esp + 0x2ba]
push ebx
push eax
mov word [esp + 0x2c0], bx
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x3ff
lea eax, [esp + 0x2ac]
push eax
mov eax, dword [esi + 0x694]
add eax, 0x42c
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
lea eax, [esp + 0x2a8]
push eax
lea edi, [esp + 0x18]
call fcn.00405bde
mov eax, dword [esp + 0xc]
add eax, 0xc
push eax
mov ebx, edi
call fcn.00405c91
push 0x40
xor ebx, ebx
lea eax, [esp + 0x58]
push ebx
push eax
call sub.msvcrt.dll_memset
mov dword [esp + 0x4c], ebx
xor eax, eax
lea edi, [esp + 0x50]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x410ab4
lea edi, [esp + 0xa8]
mov dword [esp + 0x60], 0x44
mov dword [esp + 0x8c], 0x101
mov word [esp + 0x90], bx
call fcn.00405035
add esp, 0x10
xor eax, eax
push ebx
lea edi, [esp + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push 2
lea eax, [esp + 0x34]
push eax
push ebx
xor edi, edi
push 0xc0000000
lea eax, [esp + 0xb0]
inc edi
push eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x44], 0xc
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x409742
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x409643
mov eax, 0x40e464
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x54]
push ecx
push ebx
push ebx
push ebx
push edi
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x40972a
push 0xb
pop ebx
call fcn.00406386
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [esi + 0x6b4]
call edi
mov ebx, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
xor eax, eax
inc eax
mov dword [esi + 0x6c4], eax
push eax
jmp 0x409693
call fcn.00401b05
push 1
push dword [esp + 0x44]
call ebx
test eax, eax
jne 0x40968c
push 0x40e464
push dword [esi + 0x6b4]
xor ebx, ebx
mov dword [esi + 0x6c4], ebx
call edi
push ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x10], esi
jbe 0x40972a
push ebx
push ebx
push ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea edi, [esi + 5]
lea esi, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0x1388
call fcn.004062c0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x34]
push eax
mov byte [esi], bl
push esi
push dword [esp + 0x14]
mov byte [esi + eax], bl
mov byte [esi + eax + 1], bl
mov byte [esi + eax + 2], bl
call fcn.0040579b
mov eax, dword [ebp + 8]
add esp, 0xc
push esi
push dword [eax + 0x6b4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea esi, [esp + 0x14]
call fcn.00405bb9
jmp 0x4097c5
mov eax, dword [esi + 0x69c]
push ebx
call fcn.00408d38
mov eax, dword [esi + 0x69c]
mov dword [eax + 0x30], ebx
mov eax, dword [esi + 0x69c]
call fcn.00407295
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x698]
call fcn.00407995
test eax, eax
je 0x4097b8
mov eax, dword [esp + 0x10]
mov edi, dword [esi + 0x69c]
add eax, 0xc
push eax
add edi, 0x2dc
mov eax, 0x104
call fcn.00404fb6
pop ecx
mov ecx, dword [esi + 0x69c]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [esi + 0x69c]
mov eax, dword [ecx]
push 1
call dword [eax + 0x78]
mov eax, dword [esi + 0x69c]
push 1
call fcn.00408d38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4