Function at 0x40a030
Capabilities:
Accept command line arguments
Create process on windows
Extract resource via kernel32 functions
Set environment variable
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
call fcn.0040dc93
call fcn.0040dc99
push 0x1000
mov edx, str.TEMPonefile_PID_TIME
mov ecx, 0x427ca8
call fcn.00409530
add esp, 4
test al, al
je 0x40a598
push 1
push 0x409ff0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x40a5a2
push 0xa
push 0x1b
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov dword [0x429cac], eax
mov dword [0x429ca8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [0x429ca8]
mov dword [0x427c90], eax
mov dword [0x427c94], 0
mov ax, word [ecx]
mov word [esp + 0xc], ax
mov al, byte [ecx + 2]
add ecx, 3
cmp byte [esp + 0xc], 0x4b
mov dword [0x429ca8], ecx
jne 0x40a593
cmp byte [esp + 0xd], 0x41
jne 0x40a593
cmp al, 0x59
jne 0x40a593
push 0x20000
mov dword [0x427c98], 0
call fcn.00410619
add esp, 4
mov dword [0x42d4b4], eax
test eax, eax
je 0x40a5b6
movq xmm0, qword [0x423ae8]
mov edi, dword [0x423af0]
push 0x27420
movq qword [esp + 0x1c], xmm0
call fcn.00410619
mov esi, eax
add esp, 4
test esi, esi
je 0x40a5ac
movq xmm0, qword [esp + 0x18]
mov ecx, esi
movq qword [esi + 0x736c], xmm0
mov dword [esi + 0x7374], edi
call fcn.00404f30
mov eax, dword [0x429ca8]
mov edi, 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x427c98], eax
mov eax, dword [0x427c90]
mov dword [0x42748c], esi
mov dword [0x427ca0], 0
mov dword [0x427c9c], eax
mov byte [0x427ca4], 1
nop dword [eax]
nop word [eax + eax]
mov edx, 2
lea ecx, [esp + 0xc]
mov esi, 0x429cb0
call fcn.00409bb0
mov ax, word [esp + 0xc]
mov word [0x429cb0], ax
test ax, ax
je 0x40a3c6
nop word [eax + eax]
mov edx, 2
lea ecx, [esp + 0xc]
lea esi, [esi + 2]
call fcn.00409bb0
mov ax, word [esp + 0xc]
mov word [esi], ax
test ax, ax
jne 0x40a1e0
cmp word [0x429cb0], ax
je 0x40a3c6
xor eax, eax
mov edx, 0x1000
mov ecx, 0x4354c0
mov word [0x4354c0], ax
cmp word [0x427ca8], ax
je 0x40a24b
mov esi, 0x427ca8
sub esi, ecx
nop dword [eax]
cmp edx, 1
jb 0x40a5c5
mov ax, word [esi + ecx]
dec edx
mov word [ecx], ax
add ecx, 2
cmp word [esi + ecx], 0
jne 0x40a230
xor eax, eax
mov word [ecx], ax
mov ecx, 0x1000
cmp word [0x4354c0], 0
mov eax, 0x4354c0
je 0x40a277
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x40a264
cmp ecx, 1
jb 0x40a5c5
mov dword [eax], 0x5c
mov edx, 0x1000
cmp word [0x4354c0], 0
mov eax, 0x4354c0
je 0x40a29b
add eax, 2
dec edx
cmp word [eax], 0
jne 0x40a291
mov esi, 0x429cb0
sub esi, eax
cmp edx, 1
jb 0x40a5c5
mov cx, word [esi + eax]
dec edx
mov word [eax], cx
add eax, 2
cmp word [esi + eax], 0
jne 0x40a2a2
xor ecx, ecx
mov word [eax], cx
cmp word [0x427490], cx
jne 0x40a306
cmp word [0x4354c0], 0
mov edx, 0x1000
mov ecx, 0x427490
je 0x40a301
mov esi, 0x4354c0
sub esi, ecx
cmp edx, 1
jb 0x40a5c5
mov ax, word [esi + ecx]
dec edx
mov word [ecx], ax
add ecx, 2
cmp word [esi + ecx], 0
jne 0x40a2e6
xor eax, eax
mov word [ecx], ax
mov edx, 8
lea ecx, [esp + 0x18]
call fcn.00409bb0
mov ecx, 0x4354c0
call fcn.00409de0
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push 0x4354c0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
je 0x40a5c0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test ebx, ebx
jne 0x40a359
test esi, esi
je 0x40a3b5
test ebx, ebx
ja 0x40a369
jb 0x40a365
cmp esi, 0x8000
ja 0x40a369
mov edi, esi
jmp 0x40a36e
mov edi, 0x8000
mov edx, edi
mov ecx, 0x42d4c0
call fcn.00409bb0
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push edi
push 0x42d4c0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a5bb
mov eax, edi
cdq
sub esi, eax
sbb ebx, edx
jne 0x40a357
jb 0x40a3b0
test esi, esi
jne 0x40a357
mov edi, 0x5c
push dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
jmp 0x40a1b0
call fcn.00405100
push dword [0x42d4b4]
call fcn.004105c4
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x422a90
lea eax, [esp + 0xd8]
push 0x80
push eax
call fcn.00401040
xor eax, eax
lea edx, [esp + 0xe0]
push 0x80
lea ecx, [esp + 0x164]
mov word [esp + 0x164], ax
call fcn.004099d0
add esp, 0x14
lea ecx, [esp + 0x80]
xor eax, eax
mov edx, str.NUITKA_ONEFILE_PARENT
mov word [esp + 0x80], ax
push 0x28
call fcn.004099d0
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [esp + 0x154]
add esp, 4
push eax
lea eax, [esp + 0x84]
push eax
call esi
cmp byte [0x427480], 0
jne 0x40a47d
push 0x1001
push 0x42b4b0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
mov edx, 0x42b4b0
call fcn.00409980
add esp, 4
xor eax, eax
lea ecx, [esp + 0x80]
push 0x28
mov edx, str.NUITKA_ONEFILE_BINARY
mov word [esp + 0x84], ax
call fcn.004099d0
add esp, 4
lea eax, [esp + 0x80]
push 0x42b4b0
push eax
call esi
lea eax, [esp + 0x28]
mov dword [esp + 0x38], 0x44
push eax
lea eax, [esp + 0x3c]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
movlpd qword [esp + 0x94], xmm0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x427490
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a5ca
push dword [esp + 0x2c]
call ebx
mov eax, dword [esp + 0x28]
mov dword [0x427488], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x40a573
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x10]
push eax
push dword [0x427488]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40a561
mov dword [esp + 0x10], 1
push dword [0x427488]
call ebx
mov dword [0x427488], 0
call fcn.00409ee0
mov ecx, dword [esp + 0x254]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a5d8
mov esp, ebp
pop ebp
ret 0x10
call fcn.00409b30
mov ecx, str.TEMPonefile_PID_TIME
call fcn.00409b90
mov ecx, str.Error__failed_to_register_signal_handler.
call fcn.00409ad0
mov dword [0x42748c], 0
call fcn.00409b40
call fcn.00409b00
call fcn.00409b60
call fcn.0040d7a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.00409b50
int3