Function at 0x1005dee0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
push ebx
mov eax, dword [esi + 0x134]
mov edi, dword [esi + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov eax, dword [edi + eax*4 + 0x148]
mov dword [esp + 0x1c], eax
call fcn.100466f0
mov ebp, eax
push ebx
mov dword [esp + 0x3c], ebp
call fcn.100466e0
mov ecx, dword [edi + 0x2a0]
mov ebx, eax
mov edx, dword [esp + 0x34]
add esp, 8
sub eax, edx
mov dword [esp + 0x14], eax
test byte [ecx + 0x4c], 1
jne 0x1005df41
cmp dword [edi + 0xb8], 2
jne 0x1005dfbf
cmp byte [edi + 0x114], 0x14
je 0x1005dfbf
mov ebp, dword [esi + 0x228]
mov eax, ebp
mov ecx, dword [esi + 0x22c]
or eax, ecx
je 0x1005df6e
cmp dword [esp + 0x30], ecx
jl 0x1005df6e
jg 0x1005df68
cmp edx, ebp
jbe 0x1005df6e
sub ebp, edx
add ebp, ebx
jmp 0x1005df70
mov ebp, ebx
push esi
call fcn.10059670
mov edi, eax
add esp, 4
test edi, edi
je 0x1005df95
push dword [esp + 0x20]
call fcn.10046690
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edi, dword [esi + 0x4e4]
cmp ebp, edi
cmovbe edi, ebp
push edi
push dword [esp + 0x38]
push dword [esi + 0x900]
call sub.VCRUNTIME140.dll_memcpy
mov ebp, dword [esi + 0x900]
add esp, 0xc
mov dword [esp + 0x34], ebp
jmp 0x1005e014
push str.CURL_SMALLREQSEND
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x1005dfea
push 0xa
push 0
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1005e012
cmp ebx, edi
cmovb edi, ebx
jmp 0x1005e014
mov edi, dword [esi + 0x228]
mov eax, edi
mov ecx, dword [esi + 0x22c]
or eax, ecx
je 0x1005e012
cmp dword [esp + 0x30], ecx
jl 0x1005e012
mov eax, dword [esp + 0x2c]
jg 0x1005e00c
cmp eax, edi
jbe 0x1005e012
sub edi, eax
add edi, ebx
jmp 0x1005e014
mov edi, ebx
lea eax, [esp + 0x24]
push eax
push edi
push ebp
push dword [esp + 0x24]
push esi
call fcn.10051130
add esp, 0x14
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x1005e15f
mov edi, dword [esp + 0x24]
mov ebp, edi
cmp edi, dword [esp + 0x14]
cmova ebp, dword [esp + 0x14]
push ebp
push dword [esp + 0x38]
push 2
push esi
call fcn.10050b20
add esp, 0x10
sub edi, ebp
je 0x1005e06a
mov eax, dword [esp + 0x34]
push edi
add eax, ebp
push eax
push 4
push esi
call fcn.10050b20
add esp, 0x10
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
cmp dword [esp + 0x10], 0
je 0x1005e18b
add dword [esi + 0x98], edi
adc dword [esi + 0x9c], 0
push dword [esi + 0x9c]
push dword [esi + 0x98]
push esi
call fcn.10061eb0
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, ebx
je 0x1005e151
push dword [esp + 0x20]
sub ebx, eax
call fcn.100466f0
mov edi, dword [esp + 0x14]
mov edx, eax
mov ecx, dword [esi + 0xc5c]
add esp, 4
add edx, dword [esp + 0x24]
mov eax, dword [edi + 0x10]
mov dword [edi + 0x188], ecx
mov ecx, dword [esi + 0xc60]
mov dword [edi + 0x190], eax
mov eax, dword [edi + 8]
mov dword [edi + 0x198], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x18c], ecx
sub eax, ebp
mov ecx, dword [edi + 0xc]
mov dword [edi + 0x19c], ecx
mov dword [esi + 0xc5c], 0x10061b00
mov dword [esi + 0xc60], esi
mov dword [edi + 8], ebx
mov dword [edi + 0x10], edx
mov dword [edi + 0xc], 0
mov dword [esi + 0xb0], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0xb4], 0
movups xmm0, xmmword [eax]
mov dword [edi + 0x1a0], 1
xor eax, eax
movups xmmword [edi + 0x1a4], xmm0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
mov dword [eax + 0x1a0], 2
push dword [esp + 0x20]
call fcn.10046690
mov eax, dword [esp + 0x30]
add esp, 4
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0x24], ebx
je 0x1005e15f
pop edi
pop esi
pop ebp
mov eax, 0x37
pop ebx
add esp, 0xc
ret