Function at 0x413f00
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14c
mov eax, dword [0x5cab48]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
mov ebx, dword [esp + 0x158]
push ebp
push esi
mov esi, dword [esp + 0x15c]
push edi
push str.SGIRDS_PROXY
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
call sub.MSVCR110.dll_getenv
mov edx, eax
add esp, 4
test edx, edx
je 0x413f85
cmp byte [edx], 0
jne 0x413f6c
xor ecx, ecx
jmp 0x413f7a
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413f71
sub ecx, edi
push ecx
push edx
lea ecx, [esp + 0x48]
call fcn.00408240
cmp dword [esp + 0x24], 0x10
jb 0x413f98
push dword [esp + 0x10]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.00406990
cmp dword [esp + 0x54], 0x10
jb 0x413fce
push dword [esp + 0x40]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
cmp ebp, 0x10
lea ecx, [esp + 0x10]
cmovae ecx, dword [esp + 0x10]
mov eax, 4
cmp edi, eax
cmovb eax, edi
push eax
push str.None
push ecx
call fcn.00409d70
add esp, 0xc
test eax, eax
jne 0x41400e
cmp edi, 4
jb 0x41400e
cmp edi, 4
setne al
test eax, eax
je 0x414053
cmp ebp, 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
cmp edi, 4
mov ecx, 4
cmovb ecx, edi
push ecx
push str.NONE
push eax
call fcn.00409d70
add esp, 0xc
test eax, eax
jne 0x4140fa
cmp edi, 4
jb 0x4140fa
cmp edi, 4
setne al
test eax, eax
jne 0x4140fa
push str.PROXY_set_to_None
push 0x23a
push str.SGIUtils::getProxy
push str.sgiutils.cpp
lea eax, [esp + 0x38]
push 1
push eax
call fcn.00415f20
add esp, 0x18
cmp dword [esp + 0x3c], 0x10
jb 0x414089
push dword [esp + 0x28]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
mov dword [esp + 0x20], 0
mov byte [eax], 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov edx, dword [esp + 0x24]
cmp edx, 0x10
jae 0x4140e5
mov eax, dword [esp + 0x20]
inc eax
je 0x4140eb
push eax
lea eax, [esp + 0x14]
push eax
push esi
call sub.MSVCR110.dll_memmove
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jmp 0x41421d
mov ecx, dword [esp + 0x10]
mov dword [esi], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jmp 0x41421d
test edi, edi
jne 0x4141bb
push 0x100
lea eax, [esp + 0x5c]
push edi
push eax
call sub.MSVCR110.dll_memset
push str.Proxy_env_not_set__attempting_discovery
push 0x242
push str.SGIUtils::getProxy
push str.sgiutils.cpp
lea eax, [esp + 0x44]
push 1
push eax
call fcn.00415f20
add esp, 0x24
cmp dword [esp + 0x3c], 0x10
jb 0x414148
push dword [esp + 0x28]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebx + 0x14], 0x10
jb 0x414150
mov ebx, dword [ebx]
lea eax, [esp + 0x58]
push eax
push ebx
call fcn.00428cd0
add esp, 8
test eax, eax
je 0x4141b7
lea eax, [esp + 0x58]
push 0x3b
push eax
call sub.MSVCR110.dll_strchr
add esp, 8
test eax, eax
je 0x4141a9
mov byte [eax], 0
lea eax, [esp + 0x58]
push eax
push str.Mutiple_proxy_entries__using__s_._Set_Proxy_in_config_file_to_change_this
push 0x24c
push str.SGIUtils::getProxy
push str.sgiutils.cpp
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00415f20
add esp, 0x1c
lea ecx, [esp + 0x28]
call fcn.00403880
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x14]
call fcn.00408200
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x10]
cmp ebp, 0x10
cmovae eax, dword [esp + 0x10]
push eax
push str.PROXY_set_to__s
push 0x267
push str.SGIUtils::getProxy
push str.sgiutils.cpp
lea eax, [esp + 0x3c]
push 1
push eax
call fcn.00415f20
add esp, 0x1c
cmp dword [esp + 0x3c], 0x10
jb 0x4141fe
push dword [esp + 0x28]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004025b0
cmp dword [esp + 0x24], 0x10
jb 0x41421d
push dword [esp + 0x10]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x158]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055423a
add esp, 0x14c
ret