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

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14000a808]
mov rbx, rcx
cmp dword [rax + 8], 0
je 0x1400015c7
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, [0x1400064f8]
mov rcx, rbx
call fcn.1400033a0
test rax, rax
je 0x1400015c7
mov dword [rax], 1
mov r10, qword [0x1400097a8]
test r10, r10
je 0x1400015e1
cmp rbx, qword [r10]
je 0x14000160b
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x1400015d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140006510]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
jne 0x140001637
lea rax, [0x140003360]
jmp 0x14000163c
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.140002ea0
mov rcx, qword [r10]
lea rdx, [0x140006510]
call fcn.140002c10
test rax, rax
je 0x140001642
mov dword [rax], 1
mov r10, qword [0x1400097a8]
test r10, r10
je 0x14000165e
nop
cmp rbx, qword [r10]
je 0x140001688
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001650
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140006520]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
jne 0x1400016b4
lea rax, [0x140003360]
jmp 0x1400016b9
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.140002ea0
mov rcx, qword [r10]
lea rdx, [0x140006520]
call fcn.140002c10
test rax, rax
je 0x1400016bf
mov dword [rax], 1
mov r10, qword [0x1400097a8]
test r10, r10
je 0x1400016de
nop dword [rax + rax]
cmp rbx, qword [r10]
je 0x140001708
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x1400016d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140006530]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
jne 0x140001734
lea rax, [0x140003360]
jmp 0x140001739
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.140002ea0
mov rcx, qword [r10]
lea rdx, [0x140006530]
call fcn.140002c10
test rax, rax
je 0x14000173f
mov dword [rax], 1
mov r10, qword [0x1400097a8]
test r10, r10
je 0x14000175e
nop dword [rax + rax]
cmp rbx, qword [r10]
je 0x140001788
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001750
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140006550]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
jne 0x1400017b4
lea rax, [0x140003360]
jmp 0x1400017b9
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.140002ea0
mov rcx, qword [r10]
lea rdx, [0x140006550]
call fcn.140002c10
test rax, rax
je 0x1400017bf
mov dword [rax], 1
mov r10, qword [0x1400097a8]
test r10, r10
je 0x1400017de
nop dword [rax + rax]
cmp rbx, qword [r10]
je 0x14000180b
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x1400017d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140006568]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rax
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
jne 0x14000183a
lea rdx, [0x140003360]
jmp 0x14000183f
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.140002ea0
mov rcx, qword [r10]
lea rdx, [0x140006568]
call fcn.140002c10
mov rdx, rax
test rdx, rdx
je 0x14000184b
mov rax, qword [0x14000a808]
mov ecx, dword [rax + 4]
mov dword [rdx], ecx
mov r10, qword [0x1400097a8]
test r10, r10
je 0x140001865
cmp rbx, qword [r10]
je 0x140001892
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001857
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x140006578]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
jne 0x1400018c1
lea rbx, [0x140003360]
jmp 0x1400018c6
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.140002ea0
mov rcx, qword [r10]
lea rdx, [0x140006578]
call fcn.140002c10
mov rbx, rax
test rbx, rbx
je 0x1400018fc
lea rcx, str.PY2EXE_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400018f6
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