Function at 0x140001870
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 0x1400018b4
mov rcx, qword [rax]
call qword [sym.imp.python39.dll_Py_SetProgramName]
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.python39.dll_Py_Initialize]
lea rcx, str.servicemanager
call qword [sym.imp.python39.dll_PyImport_ImportModule]
mov rdi, rax
test rax, rax
je 0x140001a13
lea rdx, str.__file__
mov rcx, rax
call qword [sym.imp.python39.dll_PyObject_GetAttrString]
sub qword [rdi], 1
mov rbx, rax
jne 0x1400018fd
mov rcx, rdi
call qword [sym.imp.python39.dll__Py_Dealloc]
test rbx, rbx
je 0x140001a13
mov rcx, qword [rbx + 8]
call qword [sym.imp.python39.dll_PyType_GetFlags]
mov rcx, rbx
bt eax, 0x1b
jae 0x14000192d
call qword [sym.imp.python39.dll_PyBytes_AsString]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
jmp 0x140001967
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x30], 0
call qword [sym.imp.python39.dll_PyUnicode_AsWideCharString]
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400019ed
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, qword [rbp - 0x30]
mov rdi, rax
test rcx, rcx
je 0x140001967
call qword [sym.imp.python39.dll_PyMem_Free]
sub qword [rbx], 1
jne 0x140001976
mov rcx, rbx
call qword [sym.imp.python39.dll__Py_Dealloc]
test rdi, rdi
jne 0x14000199d
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.python39.dll_PyExc_RuntimeError]
mov r8d, eax
mov rcx, qword [rcx]
call qword [sym.imp.python39.dll_PyErr_Format]
jmp 0x140001a13
lea rdx, str.PythonService_main
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x1400019c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.servicemanager.__file___does_not_contain_PythonService_main___win32_error_code_is__d
jmp 0x140001988
xor ecx, ecx
call qword [sym.imp.python39.dll_PyThreadState_Swap]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.python39.dll_PyThreadState_Swap]
mov rcx, rbx
call qword [sym.imp.python39.dll_PyEval_ReleaseThread]
mov rdx, r14
mov ecx, esi
call rdi
jmp 0x140001b2c
mov rcx, qword [sym.imp.python39.dll_PyExc_TypeError]
lea rdx, str.servicemanager.__file___is_not_a_string_or_unicode__
mov rcx, qword [rcx]
call qword [sym.imp.python39.dll_PyErr_SetString]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140001a13
call qword [sym.imp.python39.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.python39.dll_PyErr_Occurred]
test rax, rax
je 0x140001af6
xorps xmm0, xmm0
lea r8, [rbp - 0x40]
xorps xmm1, xmm1
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x50]
movdqu xmmword [rbp - 0x30], xmm0
movdqu xmmword [rbp - 0x20], xmm1
call qword [sym.imp.python39.dll_PyErr_Fetch]
mov r8, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.pywintypes39.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.140001570
test rbx, rbx
je 0x140001a9c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [0x140006834], 0
mov rcx, qword [rbp - 0x50]
je 0x140001ab9
mov r8, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x48]
call qword [sym.imp.python39.dll_PyErr_Restore]
jmp 0x140001b21
test rcx, rcx
je 0x140001aca
sub qword [rcx], 1
jne 0x140001aca
call qword [sym.imp.python39.dll__Py_Dealloc]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140001adf
sub qword [rcx], 1
jne 0x140001adf
call qword [sym.imp.python39.dll__Py_Dealloc]
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140001b21
sub qword [rcx], 1
jne 0x140001b21
call qword [sym.imp.python39.dll__Py_Dealloc]
jmp 0x140001b21
lea rax, str._No_Python_Error__
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x30]
lea rax, [0x1400043d8]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
call fcn.140001570
call qword [sym.imp.python39.dll_PyErr_Clear]
mov eax, 1
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001c00
mov rsi, qword [rsp + 0xa8]
add rsp, 0x70
pop r14
pop rdi
pop rbp
ret