Function at 0x1400016c0
Capabilities:
Compiled with py2exe
Link many functions at runtime
Query environment variable

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14000a848]
mov rbx, rcx
cmp dword [rax + 8], 0
je 0x140001787
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor r9d, r9d
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setvbuf]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor r9d, r9d
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setvbuf]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor r9d, r9d
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setvbuf]
lea rdx, str.Py_UnbufferedStdioFlag
mov rcx, rbx
call fcn.1400037e0
test rax, rax
je 0x140001787
mov dword [rax], 1
mov r10, qword [0x1400097a8]
test r10, r10
je 0x1400017a1
cmp rbx, qword [r10]
je 0x1400017cb
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001793
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.Py_IsolatedFlag
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
jne 0x1400017f7
lea rax, [0x1400037a0]
jmp 0x1400017fc
mov eax, dword [r10 + 0x20]
lea rcx, str._FindMemoryModule__s___p______s__d__n
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.1400032e0
mov rcx, qword [r10]
lea rdx, str.Py_IsolatedFlag
call fcn.140003050
test rax, rax
je 0x140001802
mov dword [rax], 1
mov r10, qword [0x1400097a8]
test r10, r10
je 0x14000181e
nop
cmp rbx, qword [r10]
je 0x140001848
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001810
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.Py_NoSiteFlag
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
jne 0x140001874
lea rax, [0x1400037a0]
jmp 0x140001879
mov eax, dword [r10 + 0x20]
lea rcx, str._FindMemoryModule__s___p______s__d__n
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.1400032e0
mov rcx, qword [r10]
lea rdx, str.Py_NoSiteFlag
call fcn.140003050
test rax, rax
je 0x14000187f
mov dword [rax], 1
mov r10, qword [0x1400097a8]
test r10, r10
je 0x14000189e
nop dword [rax + rax]
cmp rbx, qword [r10]
je 0x1400018c8
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001890
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.Py_IgnoreEnvironmentFlag
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
jne 0x1400018f4
lea rax, [0x1400037a0]
jmp 0x1400018f9
mov eax, dword [r10 + 0x20]
lea rcx, str._FindMemoryModule__s___p______s__d__n
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.1400032e0
mov rcx, qword [r10]
lea rdx, str.Py_IgnoreEnvironmentFlag
call fcn.140003050
test rax, rax
je 0x1400018ff
mov dword [rax], 1
mov r10, qword [0x1400097a8]
test r10, r10
je 0x14000191e
nop dword [rax + rax]
cmp rbx, qword [r10]
je 0x140001948
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001910
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.Py_NoUserSiteDirectory
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
jne 0x140001974
lea rax, [0x1400037a0]
jmp 0x140001979
mov eax, dword [r10 + 0x20]
lea rcx, str._FindMemoryModule__s___p______s__d__n
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.1400032e0
mov rcx, qword [r10]
lea rdx, str.Py_NoUserSiteDirectory
call fcn.140003050
test rax, rax
je 0x14000197f
mov dword [rax], 1
mov r10, qword [0x1400097a8]
test r10, r10
je 0x14000199e
nop dword [rax + rax]
cmp rbx, qword [r10]
je 0x1400019cb
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001990
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.Py_OptimizeFlag
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rax
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
jne 0x1400019fa
lea rdx, [0x1400037a0]
jmp 0x1400019ff
mov eax, dword [r10 + 0x20]
lea rcx, str._FindMemoryModule__s___p______s__d__n
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.1400032e0
mov rcx, qword [r10]
lea rdx, str.Py_OptimizeFlag
call fcn.140003050
mov rdx, rax
test rdx, rdx
je 0x140001a0b
mov rax, qword [0x14000a848]
mov ecx, dword [rax + 4]
mov dword [rdx], ecx
mov r10, qword [0x1400097a8]
test r10, r10
je 0x140001a25
cmp rbx, qword [r10]
je 0x140001a52
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001a17
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.Py_VerboseFlag
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
jne 0x140001a81
lea rbx, [0x1400037a0]
jmp 0x140001a86
mov eax, dword [r10 + 0x20]
lea rcx, str._FindMemoryModule__s___p______s__d__n
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.1400032e0
mov rcx, qword [r10]
lea rdx, str.Py_VerboseFlag
call fcn.140003050
mov rbx, rax
test rbx, rbx
je 0x140001abc
lea rcx, str.PY2EXE_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001ab6
lea rcx, str.PY2EXE_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [rbx], eax
add rsp, 0x30
pop rbx
ret
mov dword [rbx], 0
add rsp, 0x30
pop rbx
ret