Function at 0x409f20
Capabilities:
Accept command line arguments
Check if file exists
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, 0xfc
mov eax, dword [0x423004]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
call fcn.0040ca95
call fcn.0040ca9b
push 0x1000
mov edx, str._TEMP_onefile__PID___TIME_
mov ecx, 0x424400
call fcn.00409400
add esp, 4
test al, al
je 0x40a409
push 1
push 0x409ee0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x40a413
push 0xa
push 0x1b
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x427414], eax
mov cx, word [eax]
mov word [esp + 0xc], cx
mov cl, byte [eax + 2]
add eax, 3
cmp byte [esp + 0xc], 0x4b
mov dword [0x427400], eax
jne 0x40a404
cmp byte [esp + 0xd], 0x41
jne 0x40a404
cmp cl, 0x59
jne 0x40a404
push 0x20000
mov dword [0x4243f4], 0
call fcn.0040e9c9
add esp, 4
mov dword [0x427404], eax
test eax, eax
je 0x40a41d
movq xmm0, qword [0x4211a4]
mov edi, dword [0x4211ac]
push 0x27420
movq qword [esp + 0x1c], xmm0
call fcn.0040e9c9
mov esi, eax
add esp, 4
test esi, esi
je 0x40a422
movq xmm0, qword [esp + 0x18]
mov ecx, esi
movq qword [esi + 0x736c], xmm0
mov dword [esi + 0x7374], edi
call fcn.00404ee0
mov dword [0x4243f0], esi
call fcn.0040a460
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x4243ed], 1
mov edx, 2
lea ecx, [esp + 0xc]
mov esi, 0x433c20
call fcn.00409a30
mov ax, word [esp + 0xc]
mov word [0x433c20], ax
test ax, ax
je 0x40a26a
nop word [eax + eax]
mov edx, 2
lea ecx, [esp + 0xc]
lea esi, [esi + 2]
call fcn.00409a30
mov ax, word [esp + 0xc]
mov word [esi], ax
test ax, ax
jne 0x40a080
cmp word [0x433c20], ax
je 0x40a26a
xor eax, eax
mov edx, 0x1000
mov ecx, 0x429c20
mov word [0x429c20], ax
cmp word [0x424400], ax
je 0x40a0eb
mov esi, 0x424400
sub esi, ecx
nop dword [eax]
cmp edx, 1
jb 0x40a440
mov ax, word [esi + ecx]
dec edx
mov word [ecx], ax
add ecx, 2
cmp word [esi + ecx], 0
jne 0x40a0d0
xor eax, eax
mov word [ecx], ax
mov ecx, 0x1000
cmp word [0x429c20], 0
mov eax, 0x429c20
je 0x40a117
add eax, 2
dec ecx
cmp word [eax], 0
jne 0x40a104
cmp ecx, 1
jb 0x40a440
mov dword [eax], 0x5c
mov edx, 0x1000
cmp word [0x429c20], 0
mov eax, 0x429c20
je 0x40a13b
add eax, 2
dec edx
cmp word [eax], 0
jne 0x40a131
mov esi, 0x433c20
sub esi, eax
cmp edx, 1
jb 0x40a440
mov cx, word [esi + eax]
dec edx
mov word [eax], cx
add eax, 2
cmp word [esi + eax], 0
jne 0x40a142
xor ecx, ecx
mov word [eax], cx
cmp word [0x429420], cx
jne 0x40a1a6
cmp word [0x429c20], 0
mov edx, 0x1000
mov ecx, 0x429420
je 0x40a1a1
mov esi, 0x429c20
sub esi, ecx
cmp edx, 1
jb 0x40a440
mov ax, word [esi + ecx]
dec edx
mov word [ecx], ax
add ecx, 2
cmp word [esi + ecx], 0
jne 0x40a186
xor eax, eax
mov word [ecx], ax
mov edx, 8
lea ecx, [esp + 0x18]
call fcn.00409a30
mov esi, dword [esp + 0x18]
mov ecx, 0x429c20
mov ebx, dword [esp + 0x1c]
call fcn.00409cd0
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push 0x429c20
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40a43b
test ebx, ebx
jne 0x40a1f7
test esi, esi
je 0x40a25a
test ebx, ebx
ja 0x40a207
jb 0x40a203
cmp esi, 0x8000
ja 0x40a207
mov edi, esi
jmp 0x40a20c
mov edi, 0x8000
mov edx, edi
mov ecx, 0x42bc20
call fcn.00409a30
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push edi
push 0x42bc20
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a436
mov eax, edi
cdq
sub esi, eax
sbb ebx, edx
test ebx, ebx
ja 0x40a207
jb 0x40a250
test esi, esi
jne 0x40a1f5
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
or esi, ebx
jne 0x40a431
push eax
call edi
jmp 0x40a050
call fcn.004050c0
push dword [0x427404]
call fcn.0040e974
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x420da8
lea eax, [esp + 0x88]
push 0x80
push eax
call fcn.00401040
add esp, 0x10
lea eax, [esp + 0x80]
push eax
push str.NUITKA_ONEFILE_PARENT
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
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 0x429420
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a445
push dword [esp + 0x2c]
call edi
mov eax, dword [esp + 0x28]
mov esi, 0x32
mov dword [0x4243e4], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x40a3e4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.USER32.dll_DestroyWindow]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x10]
push eax
push dword [0x4243e4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40a3c6
cmp dword [esp + 0x10], 0x103
jne 0x40a3ce
cmp byte [0x4243ec], 0
je 0x40a3b8
push 0x427418
call ebx
test eax, eax
jne 0x40a3af
mov eax, dword [0x4243e8]
test eax, eax
je 0x40a3a6
push eax
call edi
mov dword [0x4243e8], 0
mov byte [0x4243ec], 0
jmp 0x40a3b8
cmp byte [0x4243ec], 0
jne 0x40a3bb
or esi, 0xffffffff
mov eax, dword [0x4243e4]
test eax, eax
jne 0x40a355
jmp 0x40a3e4
mov dword [esp + 0x10], 1
push dword [0x4243e4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4243e4], 0
call fcn.00409dd0
mov ecx, dword [esp + 0x104]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a92c
mov esp, ebp
pop ebp
ret 0x10
call fcn.004099a0
mov ecx, str._TEMP_onefile__PID___TIME_
call fcn.00409a10
mov ecx, str.Error__failed_to_register_signal_handler.
call fcn.00409940
call fcn.004099c0
mov dword [0x4243f0], 0
call fcn.004099c0
call fcn.004099b0
call fcn.00409980
call fcn.004099e0
call fcn.0040c691
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.004099d0
int3