Function at 0x140001860
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, rdx
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rbp - 0x38]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
je 0x1400018a4
mov rcx, qword [rax]
call qword [sym.imp.python310.dll_Py_SetProgramName]
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.python310.dll_Py_Initialize]
lea rcx, str.servicemanager
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov rdi, rax
test rax, rax
je 0x140001a03
lea rdx, str.__file__
mov rcx, rax
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
sub qword [rdi], 1
mov rbx, rax
jne 0x1400018ed
mov rcx, rdi
call qword [sym.imp.python310.dll__Py_Dealloc]
test rbx, rbx
je 0x140001a03
mov rcx, qword [rbx + 8]
test dword [rcx + 0xa8], 0x8000000
mov rcx, rbx
je 0x14000191d
call qword [sym.imp.python310.dll_PyBytes_AsString]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
jmp 0x140001957
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x30], 0
call qword [sym.imp.python310.dll_PyUnicode_AsWideCharString]
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400019dd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, qword [rbp - 0x30]
mov rdi, rax
test rcx, rcx
je 0x140001957
call qword [sym.imp.python310.dll_PyMem_Free]
sub qword [rbx], 1
jne 0x140001966
mov rcx, rbx
call qword [sym.imp.python310.dll__Py_Dealloc]
test rdi, rdi
jne 0x14000198d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.servicemanager.__file___could_not_be_loaded___win32_error_code_is__d
mov rcx, qword [sym.imp.python310.dll_PyExc_RuntimeError]
mov r8d, eax
mov rcx, qword [rcx]
call qword [sym.imp.python310.dll_PyErr_Format]
jmp 0x140001a03
lea rdx, str.PythonService_main
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x1400019b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.servicemanager.__file___does_not_contain_PythonService_main___win32_error_code_is__d
jmp 0x140001978
xor ecx, ecx
call qword [sym.imp.python310.dll_PyThreadState_Swap]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.python310.dll_PyThreadState_Swap]
mov rcx, rbx
call qword [sym.imp.python310.dll_PyEval_ReleaseThread]
mov rdx, r14
mov ecx, esi
call rdi
jmp 0x140001b14
mov rcx, qword [sym.imp.python310.dll_PyExc_TypeError]
lea rdx, str.servicemanager.__file___is_not_a_string_or_unicode__
mov rcx, qword [rcx]
call qword [sym.imp.python310.dll_PyErr_SetString]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140001a03
call qword [sym.imp.python310.dll_PyMem_Free]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.PythonService_was_unable_to_locate_the_service_manager._Please_see_the_event_log_for_details_n
call fcn.140001110
call qword [sym.imp.python310.dll_PyErr_Occurred]
mov qword [rbp - 0x18], 0
test rax, rax
je 0x140001ae6
xorps xmm0, xmm0
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x50]
movdqu xmmword [rbp - 0x28], xmm0
call qword [sym.imp.python310.dll_PyErr_Fetch]
mov r8, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.pywintypes310.dll_wchar_t____ptr64___cdecl_GetPythonTraceback_struct__object____ptr64__struct__object____ptr64__struct__object____ptr64_]
test rax, rax
lea rcx, str._No_memory__
lea rdx, [rbp - 0x30]
mov rbx, rax
cmovne rcx, rax
mov qword [rbp - 0x30], rcx
call fcn.140001560
test rbx, rbx
je 0x140001a8c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [0x140006844], 0
mov rcx, qword [rbp - 0x50]
je 0x140001aa9
mov r8, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x48]
call qword [sym.imp.python310.dll_PyErr_Restore]
jmp 0x140001b09
test rcx, rcx
je 0x140001aba
sub qword [rcx], 1
jne 0x140001aba
call qword [sym.imp.python310.dll__Py_Dealloc]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140001acf
sub qword [rcx], 1
jne 0x140001acf
call qword [sym.imp.python310.dll__Py_Dealloc]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140001b09
sub qword [rcx], 1
jne 0x140001b09
call qword [sym.imp.python310.dll__Py_Dealloc]
jmp 0x140001b09
lea rax, str._No_Python_Error__
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x30]
lea rax, [0x140004408]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
call fcn.140001560
call qword [sym.imp.python310.dll_PyErr_Clear]
mov eax, 1
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001be0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x70
pop r14
pop rdi
pop rbp
ret