Function at 0x507920
Capabilities:
Accept command line arguments
Create thread
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov rax, qword [sym.imp.msvcrt.dll___argc]
mov rax, qword [rax]
mov r12d, dword [rax]
call qword [0x005a73e0]
mov rsi, qword [sym.imp.python39.dll_PyImport_FrozenModules]
mov r13, qword [rsi]
cmp qword [r13], 0
mov rax, r13
je 0x50796a
nop word cs:[rax + rax]
add rax, 0x18
cmp qword [rax], 0
jne 0x507960
sub rax, r13
mov rbx, rax
movabs rax, 0xaaaaaaaaaaaaaaab
sar rbx, 3
imul rbx, rax
lea eax, [rbx + 0xa7]
movsxd rbx, ebx
cdqe
lea rbx, [rbx + rbx*2]
lea rcx, [rax + rax*2]
shl rbx, 3
shl rcx, 3
call sub.msvcrt.dll_malloc
mov r8, rbx
mov rdx, r13
lea r13, [rsp + 0x30]
mov rdi, rax
mov rcx, rax
call sub.msvcrt.dll_memcpy
lea rcx, [rdi + rbx]
call fcn.00401940
mov rax, qword [rsi]
mov qword [rsi], rdi
mov qword [0x005c9f48], rax
call fcn.00522f10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
call fcn.00522f10
mov rcx, rax
call qword [sym.imp.python39.dll_Py_SetPythonHome]
mov rax, qword [sym.imp.python39.dll_Py_DebugFlag]
mov rbx, qword [sym.imp.python39.dll_Py_NoSiteFlag]
mov dword [rax], 0
mov rax, qword [sym.imp.python39.dll_Py_InspectFlag]
mov dword [rbx], 1
mov dword [rax], 0
mov rax, qword [sym.imp.python39.dll_Py_InteractiveFlag]
mov dword [rax], 0
mov rax, qword [sym.imp.python39.dll_Py_OptimizeFlag]
mov dword [rax], 0
mov rax, qword [sym.imp.python39.dll_Py_DontWriteBytecodeFlag]
mov dword [rax], 0
mov rax, qword [sym.imp.python39.dll_Py_NoUserSiteDirectory]
mov dword [rax], 0
mov rax, qword [sym.imp.python39.dll_Py_IgnoreEnvironmentFlag]
mov dword [rax], 0
mov rax, qword [sym.imp.python39.dll_Py_VerboseFlag]
mov dword [rax], 0
mov rax, qword [sym.imp.python39.dll_Py_BytesWarningFlag]
mov dword [rax], 0
mov rax, qword [sym.imp.python39.dll_Py_UTF8Mode]
mov dword [rax], 0
mov rax, qword [sym.imp.python39.dll_Py_FrozenFlag]
mov dword [rax], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, r13
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r8d, 1
mov ecx, r12d
mov rdx, rax
mov qword [0x005c9f50], rax
call fcn.00507810
call qword [sym.imp.python39.dll_Py_Initialize]
call fcn.00522f10
mov rcx, rax
call qword [sym.imp.python39.dll_PySys_SetPath]
call fcn.00522f10
mov rcx, rax
call qword [sym.imp.python39.dll_Py_SetPath]
mov rdx, qword [0x005c9f50]
xor r8d, r8d
mov ecx, r12d
mov dword [rbx], 0
call fcn.00507810
call fcn.00523020
call fcn.004017c0
call fcn.0053ad30
mov rdi, qword [0x005b1cd0]
lea rcx, [0x005abf16]
mov rbx, qword [sym.imp.python39.dll_PySys_GetObject]
mov rbp, qword [rdi + 0x10]
call rbx
mov edx, 6
mov rcx, rax
mov r8, rbp
call qword [sym.imp.python39.dll_PyStructSequence_SetItem]
call fcn.00508160
call fcn.005921b0
call fcn.0051c2e0
call fcn.0051c650
call fcn.00593050
call fcn.00558900
call fcn.0053aed0
call fcn.005229f0
call fcn.00593df0
call fcn.00593e80
call fcn.00593f50
lea rcx, str.NUL:
call qword [sym.imp.python39.dll_PyUnicode_FromString]
lea rcx, [0x005abf21]
mov r12, rax
call rbx
test rax, rax
je 0x507d9e
lea rcx, [0x005abf29]
call rbx
test rax, rax
je 0x507dc2
lea rcx, [0x005abf32]
call rbx
test rax, rax
je 0x507d7a
sub qword [r12], 1
je 0x507d22
call fcn.00596090
mov rax, qword [0x005c9f48]
mov qword [rsi], rax
call fcn.004018e0
call qword [sym.imp.python39.dll__PyWarnings_Init]
call fcn.00593bc0
mov r8d, pe_nt_image_headers64
mov rdx, r13
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rcx, str.NUITKA_ONEFILE_PARENT
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
sub eax, 1
cmp eax, 0x7d
jbe 0x507d30
mov r12, qword [rdi + 0x218]
call qword [sym.imp.python39.dll_PyImport_GetModuleDict]
mov rcx, rax
mov rdx, r12
call qword [sym.imp.python39.dll_PyDict_DelItem]
lea rcx, str.__main__
call fcn.00595ea0
mov rax, qword [sym.imp.python39.dll__PyRuntime]
xor ecx, ecx
mov rdx, qword [rax + 0x1f0]
cmp qword [rdx + 0x58], 0
je 0x507d1c
mov r12, qword [rax + 0x1f0]
mov rbx, qword [r12 + 0x68]
test rbx, rbx
je 0x507d0f
mov rbp, qword [sym.imp.python39.dll_PyUnicode_AsUTF8]
lea r13, str._frozen_importlib._bootstrap_
mov rax, qword [rbx + 0x18]
mov rdi, r13
mov rax, qword [rax + 0x20]
mov rcx, qword [rax + 0x68]
call rbp
mov ecx, 0x1e
mov rsi, rax
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
je 0x507d68
xor ecx, ecx
call qword [sym.imp.python39.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python39.dll_Py_Exit]
mov rcx, r12
call qword [sym.imp.python39.dll__Py_Dealloc]
jmp 0x507bad
mov rcx, r13
call sub.msvcrt.dll_atol
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
lea r8, [0x00507770]
mov dword [rsp + 0x20], 0
mov dword [0x005c9f40], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x507c90
mov rbx, qword [rbx + 0x10]
mov qword [r12 + 0x68], rbx
add qword [rbx], 1
jmp 0x507ceb
mov rcx, r12
lea rdx, [0x005abf30]
call fcn.005078d0
lea rcx, [0x005abf32]
mov rdx, rax
call qword [sym.imp.python39.dll_PySys_SetObject]
jmp 0x507ba2
mov rcx, r12
lea rdx, [0x005abf27]
call fcn.005078d0
lea rcx, [0x005abf21]
mov rdx, rax
call qword [sym.imp.python39.dll_PySys_SetObject]
jmp 0x507b7e
mov rcx, r12
lea rdx, [0x005abf30]
call fcn.005078d0
lea rcx, [0x005abf29]
mov rdx, rax
call qword [sym.imp.python39.dll_PySys_SetObject]
jmp 0x507b90