Function at 0x140037750
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
lea rcx, [0x14010c4a8]
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1400377d7
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x48]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0x20002a
je 0x1400377c2
jmp 0x1400377d7
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x50]
mov dword [rax], ecx
xor eax, eax
jmp 0x140037c40
lea rcx, str.CURL_DEBUG_SIZE
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14003783c
mov r8d, 0xa
xor edx, edx
mov rcx, qword [rsp + 0x48]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0x20000b
je 0x140037827
cmp dword [rsp + 0x5c], 0x20000c
je 0x140037827
jmp 0x14003783c
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x54]
mov dword [rax], ecx
xor eax, eax
jmp 0x140037c40
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
sub eax, 0x200002
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0x40
ja case.0x14003787d.2097155
movsxd rax, dword [rsp + 0x60]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x37cbc]
mov eax, dword [rcx + rax*4 + 0x37c5c]
add rax, rcx
jmp rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x12c8]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x12cc]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x12d8], 0x7fffffff
jle 0x1400378de
mov rax, qword [rsp + 0x90]
mov dword [rax], 0x7fffffff
jmp 0x14003791b
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x12d8], 0xffffffff80000000
jge 0x140037903
mov rax, qword [rsp + 0x90]
mov dword [rax], 0x80000000
jmp 0x14003791b
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x12d8]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1310]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x12e0]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x5a0]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x658]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0xcb0]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x12ec]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x12e8]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0xca4]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x12f0]
mov dword [rax], ecx
jmp 0x140037c3e
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.140041230
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x140037a65
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
jmp 0x140037a73
mov rax, qword [rsp + 0x90]
mov dword [rax], 0xffffffff
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1370]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1374]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x13a0]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x12c8], 0x130
jne 0x140037af3
mov rax, qword [rsp + 0x90]
mov dword [rax], 1
jmp 0x140037b26
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax + 0x13a4]
test eax, eax
je 0x140037b10
mov dword [rsp + 0x64], 1
jmp 0x140037b18
mov dword [rsp + 0x64], 0
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x64]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x10b0]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x10b4]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x10b8]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x12d0]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0xa
je 0x140037bb2
cmp dword [rsp + 0x68], 0xb
je 0x140037bc2
cmp dword [rsp + 0x68], 0x14
je 0x140037bd2
cmp dword [rsp + 0x68], 0x1e
je 0x140037be2
jmp 0x140037bf2
mov rax, qword [rsp + 0x90]
mov dword [rax], 1
jmp 0x140037c00
mov rax, qword [rsp + 0x90]
mov dword [rax], 2
jmp 0x140037c00
mov rax, qword [rsp + 0x90]
mov dword [rax], 3
jmp 0x140037c00
mov rax, qword [rsp + 0x90]
mov dword [rax], 0x1e
jmp 0x140037c00
mov rax, qword [rsp + 0x90]
mov dword [rax], 0
jmp 0x140037c3e
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov ecx, dword [rcx + 0x1388]
mov dword [rax], ecx
jmp 0x140037c3e
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax + 0x13a5]
mov rcx, qword [rsp + 0x90]
mov dword [rcx], eax
jmp 0x140037c3e
mov eax, 0x30
jmp 0x140037c40
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400d050c
mov rax, rdi
add rsp, 0x70
pop rdi
ret