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

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14000d1c8]
mov rbx, rcx
cmp dword [rax + 8], 0
je 0x14000274f
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]
mov r10, qword [0x14000c1a8]
test r10, r10
je 0x1400026ee
nop dword [rax]
cmp rbx, qword [r10]
je 0x140002718
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x1400026e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.Py_UnbufferedStdioFlag
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
jne 0x140002744
lea rax, [0x140004320]
jmp 0x140002749
mov eax, dword [r10 + 0x20]
lea rcx, [0x14000b578]
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.140004880
mov rcx, qword [r10]
lea rdx, str.Py_UnbufferedStdioFlag
call fcn.140003200
test rax, rax
je 0x14000274f
mov dword [rax], 1
mov r10, qword [0x14000c1a8]
test r10, r10
je 0x14000276e
nop dword [rax + rax]
cmp rbx, qword [r10]
je 0x140002798
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140002760
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 0x1400027c4
lea rax, [0x140004320]
jmp 0x1400027c9
mov eax, dword [r10 + 0x20]
lea rcx, [0x14000b578]
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.140004880
mov rcx, qword [r10]
lea rdx, str.Py_IsolatedFlag
call fcn.140003200
test rax, rax
je 0x1400027cf
mov dword [rax], 1
mov r10, qword [0x14000c1a8]
test r10, r10
je 0x1400027ee
nop dword [rax + rax]
cmp rbx, qword [r10]
je 0x140002818
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x1400027e0
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 0x140002844
lea rax, [0x140004320]
jmp 0x140002849
mov eax, dword [r10 + 0x20]
lea rcx, [0x14000b578]
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.140004880
mov rcx, qword [r10]
lea rdx, str.Py_NoSiteFlag
call fcn.140003200
test rax, rax
je 0x14000284f
mov dword [rax], 1
mov r10, qword [0x14000c1a8]
test r10, r10
je 0x14000286e
nop dword [rax + rax]
cmp rbx, qword [r10]
je 0x140002898
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140002860
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 0x1400028c4
lea rax, [0x140004320]
jmp 0x1400028c9
mov eax, dword [r10 + 0x20]
lea rcx, [0x14000b578]
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.140004880
mov rcx, qword [r10]
lea rdx, str.Py_IgnoreEnvironmentFlag
call fcn.140003200
test rax, rax
je 0x1400028cf
mov dword [rax], 1
mov r10, qword [0x14000c1a8]
test r10, r10
je 0x1400028ee
nop dword [rax + rax]
cmp rbx, qword [r10]
je 0x140002918
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x1400028e0
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 0x140002944
lea rax, [0x140004320]
jmp 0x140002949
mov eax, dword [r10 + 0x20]
lea rcx, [0x14000b578]
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.140004880
mov rcx, qword [r10]
lea rdx, str.Py_NoUserSiteDirectory
call fcn.140003200
test rax, rax
je 0x14000294f
mov dword [rax], 1
mov r10, qword [0x14000c1a8]
test r10, r10
je 0x14000296e
nop dword [rax + rax]
cmp rbx, qword [r10]
je 0x14000299b
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140002960
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 0x1400029ca
lea rdx, [0x140004320]
jmp 0x1400029cf
mov eax, dword [r10 + 0x20]
lea rcx, [0x14000b578]
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.140004880
mov rcx, qword [r10]
lea rdx, str.Py_OptimizeFlag
call fcn.140003200
mov rdx, rax
test rdx, rdx
je 0x1400029db
mov rax, qword [0x14000d1c8]
mov ecx, dword [rax + 4]
mov dword [rdx], ecx
mov r10, qword [0x14000c1a8]
test r10, r10
je 0x1400029f5
cmp rbx, qword [r10]
je 0x140002a22
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x1400029e7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x14000b300]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
jne 0x140002a51
lea rbx, [0x140004320]
jmp 0x140002a56
mov eax, dword [r10 + 0x20]
lea rcx, [0x14000b578]
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.140004880
mov rcx, qword [r10]
lea rdx, [0x14000b300]
call fcn.140003200
mov rbx, rax
test rbx, rbx
je 0x140002a8c
lea rcx, str.PY2EXE_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140002a86
lea rcx, [0x14000b2e0]
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