Function at 0x54cba0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x65e374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x420], 0
push esi
xor eax, eax
mov dword [ebp - 0x424], ebx
xor esi, esi
mov dword [ebp - 0x428], eax
push edi
mov edi, dword [ebx]
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x43c], edi
cmp byte [ebx + 0x26d], al
je 0x54ccb8
push 0x100
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.005d05b0
add esp, 0xc
lea eax, [ebp - 0x208]
push 0x100
push esi
push eax
call fcn.005d05b0
mov eax, dword [edi + 0x5d8]
add esp, 0xc
test eax, eax
je 0x54cc3f
push 0x100
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.005e1910
add esp, 0xc
mov byte [ebp - 9], 0
mov eax, dword [edi + 0x5dc]
test eax, eax
je 0x54cc65
push 0x100
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.005e1910
add esp, 0xc
mov byte [ebp - 0x109], 0
push 0
push 0
lea eax, [ebx + 0xf4]
push eax
push 0
lea edx, [ebp - 0x108]
call fcn.0055fd40
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x41c], ecx
test ecx, ecx
jne 0x54d160
push eax
push eax
lea eax, [ebx + 0xf8]
push eax
push ecx
lea edx, [ebp - 0x208]
call fcn.0055fd40
mov ecx, eax
mov dword [ebp - 0x41c], eax
add esp, 0x10
test ecx, ecx
jne 0x54d160
mov eax, dword [edi + 0x57c]
test eax, eax
je 0x54ccf0
push eax
call dword [0x65edec]
mov ecx, eax
add esp, 4
mov dword [ebp - 0x420], ecx
test ecx, ecx
jne 0x54ccf0
push str.memory_shortage
push edi
call fcn.00543790
add esp, 8
mov edi, 0x1b
jmp 0x54d166
mov eax, dword [edi + 0x580]
test eax, eax
je 0x54cd10
push eax
call dword [0x65edec]
mov esi, eax
add esp, 4
mov dword [ebp - 0x434], esi
test esi, esi
je 0x54ccd8
cmp dword [edi + 0x5e0], 0
jne 0x54cdcd
push str.no_proxy
call fcn.005e25c9
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add esp, 4
mov byte [ebp - 0x310], 0
test eax, eax
je 0x54cd6d
push 0x104
lea ecx, [ebp - 0x310]
push ecx
push eax
call esi
cmp byte [ebp - 0x310], 0
je 0x54cd6d
lea eax, [ebp - 0x310]
push eax
call dword [0x65edec]
add esp, 4
mov dword [ebp - 0x428], eax
mov ecx, eax
jmp 0x54cd75
xor ecx, ecx
mov dword [ebp - 0x428], ecx
test ecx, ecx
jne 0x54cdcf
push str.NO_PROXY
call fcn.005e25c9
add esp, 4
mov byte [ebp - 0x418], 0
test eax, eax
je 0x54cdc3
push 0x104
lea ecx, [ebp - 0x418]
push ecx
push eax
call esi
cmp byte [ebp - 0x418], 0
je 0x54cdc3
lea eax, [ebp - 0x418]
push eax
call dword [0x65edec]
mov ecx, eax
add esp, 4
mov dword [ebp - 0x428], ecx
jmp 0x54cdcf
xor ecx, ecx
mov dword [ebp - 0x428], ecx
jmp 0x54cdcf
xor ecx, ecx
mov eax, dword [edi + 0x5e0]
mov edi, ecx
mov esi, dword [ebx + 0xa0]
test eax, eax
mov dword [ebp - 0x440], esi
cmovne edi, eax
mov dword [ebp - 0x438], edi
test edi, edi
je 0x54cf31
cmp byte [edi], 0
je 0x54cf31
mov edx, edi
mov ecx, 0x62e32c
call fcn.00569f00
test eax, eax
jne 0x54cfd0
mov ebx, edi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x54ce18
push 0x3a
push esi
sub ebx, ecx
call fcn.005cf910
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x54ce36
sub ecx, esi
jmp 0x54ce49
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54ce40
sub ecx, edx
xor esi, esi
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x42c], esi
test ebx, ebx
je 0x54cf2b
cmp esi, ebx
jae 0x54ce86
movsx eax, byte [esi + edi]
push eax
push 0x635a48
call fcn.005cf910
add esp, 8
test eax, eax
je 0x54ce7e
inc esi
cmp esi, ebx
jb 0x54ce63
mov dword [ebp - 0x42c], esi
cmp esi, ebx
je 0x54cf2b
mov edi, esi
jae 0x54ceb7
mov esi, dword [ebp - 0x438]
movsx eax, byte [edi + esi]
push eax
push 0x635a48
call fcn.005cf910
add esp, 8
test eax, eax
jne 0x54ceb1
inc edi
cmp edi, ebx
jb 0x54ce96
mov esi, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x438]
lea ecx, [esi + 1]
cmp byte [esi + eax], 0x2e
cmovne ecx, esi
mov esi, edi
sub esi, ecx
cmp esi, dword [ebp - 0x430]
ja 0x54cf14
mov edx, ecx
add ecx, eax
sub edx, edi
add edx, dword [ebp - 0x430]
add edx, dword [ebp - 0x440]
push esi
mov dword [ebp - 0x42c], edx
call fcn.00569fa0
add esp, 4
test eax, eax
je 0x54cf14
cmp esi, dword [ebp - 0x430]
je 0x54cfca
mov eax, dword [ebp - 0x42c]
cmp byte [eax - 1], 0x2e
je 0x54cfca
lea esi, [edi + 1]
mov edi, dword [ebp - 0x438]
mov dword [ebp - 0x42c], esi
cmp esi, ebx
jb 0x54ce63
mov ebx, dword [ebp - 0x424]
mov edi, dword [ebp - 0x420]
mov esi, dword [ebp - 0x434]
test edi, edi
jne 0x54cf54
test esi, esi
jne 0x54cf54
mov ecx, ebx
call fcn.0054c4a0
mov edi, eax
mov dword [ebp - 0x420], edi
mov eax, dword [ebp - 0x428]
push eax
call dword [0x65ede8]
add esp, 4
test edi, edi
je 0x54cf8b
cmp byte [edi], 0
je 0x54cf79
mov eax, dword [ebx + 0x2a8]
test byte [eax + 0x44], 0x10
je 0x54cf8b
push edi
call dword [0x65ede8]
add esp, 4
xor edi, edi
mov dword [ebp - 0x420], edi
test esi, esi
je 0x54cfac
cmp byte [esi], 0
je 0x54cfa0
mov eax, dword [ebx + 0x2a8]
test byte [eax + 0x44], 0x10
je 0x54cfac
push esi
call dword [0x65ede8]
add esp, 4
xor esi, esi
test edi, edi
jne 0x54cffd
test esi, esi
jne 0x54d03d
mov edi, dword [ebp - 0x41c]
mov word [ebx + 0x26a], si
jmp 0x54d128
mov ebx, dword [ebp - 0x424]
push dword [ebp - 0x420]
call dword [0x65ede8]
add esp, 4
xor edi, edi
mov dword [ebp - 0x420], edi
push dword [ebp - 0x434]
call dword [0x65ede8]
add esp, 4
xor esi, esi
jmp 0x54cf54
push dword [ebx + 0xf0]
mov ecx, dword [ebp - 0x43c]
mov edx, ebx
push edi
call fcn.0054c6a0
push edi
mov dword [ebp - 0x41c], eax
call dword [0x65ede8]
mov edi, dword [ebp - 0x41c]
add esp, 0xc
mov dword [ebp - 0x420], 0
test edi, edi
jne 0x54d166
test esi, esi
je 0x54d071
push dword [ebx + 0xd0]
mov ecx, dword [ebp - 0x43c]
mov edx, ebx
push esi
call fcn.0054c6a0
push esi
mov dword [ebp - 0x41c], eax
call dword [0x65ede8]
mov edi, dword [ebp - 0x41c]
add esp, 0xc
xor esi, esi
test edi, edi
jne 0x54d166
cmp dword [ebx + 0xdc], 0
je 0x54d0b1
mov eax, dword [ebx + 0x2a8]
test byte [eax + 0x40], 3
jne 0x54d0ad
test dword [eax + 0x44], 0x800
je 0x54d0a6
cmp byte [ebx + 0x275], 0
jne 0x54d0a6
mov dword [ebx + str.HTTP], 0x62d1e8
mov al, 1
jmp 0x54d0ba
mov byte [ebx + 0x275], 1
mov al, 1
jmp 0x54d0ba
mov byte [ebx + 0x275], 0
xor al, al
mov byte [ebx + 0x26a], al
cmp dword [ebx + 0xbc], 0
je 0x54d121
cmp dword [ebx + 0xdc], 0
jne 0x54d116
cmp dword [ebx + 0xd4], 0
jne 0x54d116
mov eax, dword [ebx + 0xf4]
push dword [ebx + 0xd8]
mov dword [ebx + 0xd4], eax
mov dword [ebx + 0xf4], 0
call dword [0x65ede8]
mov eax, dword [ebx + 0xf8]
add esp, 4
mov dword [ebx + 0xd8], eax
mov dword [ebx + 0xf8], 0
mov byte [ebx + 0x26b], 1
mov al, 1
jmp 0x54d12a
mov byte [ebx + 0x26b], 0
xor al, al
cmp byte [ebx + 0x26a], 0
jne 0x54d137
test al, al
je 0x54d139
mov al, 1
mov byte [ebx + 0x269], al
test al, al
jne 0x54d166
mov word [ebx + 0x269], 0
mov byte [ebx + 0x26b], al
mov byte [ebx + 0x26d], al
mov byte [ebx + 0x275], al
jmp 0x54d166
mov edi, dword [ebp - 0x41c]
push esi
call dword [0x65ede8]
add esp, 4
push dword [ebp - 0x420]
call dword [0x65ede8]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005b8427
mov esp, ebp
pop ebp
ret