Function at 0x4d5490
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
mov ebx, ecx
mov dword [ebp - 4], 0
push esi
push edi
mov cl, byte [ebx + 0xad]
test cl, cl
jne 0x4d59be
cmp dword [ebx + 0x104], 0
jne 0x4d59be
mov edx, dword [0x7e1a64]
mov esi, 0x7e1a64
cmp byte [ebx + 0xa0], cl
je 0x4d5945
cmp dword [ebx + 0xf0], 0
je 0x4d5506
mov ecx, dword [0x7dfed0]
mov eax, ecx
sub eax, edx
cmp eax, 0xb4
jb 0x4d5506
mov eax, edx
lock cmpxchg dword [esi], ecx
cmp eax, edx
sete al
test al, al
je 0x4d5506
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
cmp byte [ebx + 0xa0], 0
je 0x4d5945
cmp byte [0x7e1a6c], 0
jne 0x4d5945
mov eax, dword [ebx + 0x100]
test eax, eax
jne 0x4d5555
mov eax, dword [ebx + 0xf8]
test eax, eax
je 0x4d5920
push 0
push 0
push 0
push 0
push str.SteamHTTPClient
call eax
mov dword [ebx + 0x100], eax
test eax, eax
je 0x4d5920
cmp dword [ebx + 0xf4], 0
je 0x4d5920
mov edi, dword [ebp + 8]
mov esi, 0x6e7a86
mov edx, esi
mov ecx, esi
mov eax, dword [edi + 0x5c]
test eax, eax
cmovne edx, eax
mov eax, dword [edi + 0x58]
test eax, eax
push edx
cmovne ecx, eax
cmp byte [edi + 0xf2], 0
push ecx
mov eax, 0x6eaa0c
cmove eax, esi
push eax
lea eax, [ebp - 0x38]
push str.http_s:___s_s
push eax
call fcn.004b7a50
add esp, 0x14
mov dword [ebp - 0x64], 1
xor eax, eax
mov dword [ebp - 0x60], 3
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
push 4
push dword [ebp - 0x38]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.0046ca20
mov eax, dword [0x7dfed0]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x4c], eax
call edi
mov esi, dword [ebx + 0xf4]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x44], eax
call fcn.004547c0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push eax
push dword [ebx + 0x100]
call esi
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
test edi, edi
jne 0x4d56b0
cmp esi, 0x2ee6
jne 0x4d5671
mov esi, dword [ebx + 0xf4]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x60], 2
call fcn.004547c0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push eax
push dword [ebx + 0x100]
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
jne 0x4d56b0
cmp esi, 0x2eef
jne 0x4d56bd
mov esi, dword [ebx + 0xf4]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x50], 1
call fcn.004547c0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push eax
push dword [ebx + 0x100]
call esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x4d56bd
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4d56bd
cmp word [ecx], 0
jne 0x4d56ca
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x44]
cmp eax, 0x3e8
jae 0x4d56e8
mov eax, dword [0x7e1a64]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jae 0x4d56e8
cmp byte [0x7e1a6c], 0
jne 0x4d56e8
mov edx, 0x7e1a64
lock cmpxchg dword [edx], ecx
test edi, edi
je 0x4d58e4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4d5723
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x4000000
mov dword [ebp - 0x10], eax
call fcn.0046dd20
mov edi, eax
mov eax, 1
mov dword [ebp - 4], eax
jmp 0x4d572b
mov eax, dword [ebp - 4]
mov edi, 0x6f3d60
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4d575c
or eax, 2
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0x4000000
call fcn.0046dd20
mov esi, eax
jmp 0x4d5761
mov esi, 0x6f3d60
lea ecx, [ebp - 0xbc]
call fcn.004582e0
push edi
push esi
push str.Auto_proxy_finds:__s___s_n
push eax
push 5
push 4
push 0
push 0x1f
push 0
push 0
call fcn.00451380
mov eax, dword [ebp - 4]
add esp, 0x28
test al, 2
je 0x4d57cb
and eax, 0xfffffffd
cmp byte [ebp - 0x18], 0
mov dword [ebp - 4], eax
je 0x4d57a6
push dword [ebp - 0x24]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x17], 0
je 0x4d57b7
push dword [ebp - 0x20]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x16], 0
je 0x4d57c8
push dword [ebp - 0x1c]
call fcn.005519fa
add esp, 4
mov eax, dword [ebp - 4]
test al, 1
je 0x4d5802
cmp byte [ebp - 8], 0
je 0x4d57e0
push dword [ebp - 0x14]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 7], 0
je 0x4d57f1
push dword [ebp - 0x10]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 6], 0
je 0x4d5802
push dword [ebp - 0xc]
call fcn.005519fa
add esp, 4
mov eax, dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x4d5812
push eax
call edi
cmp dword [ebp - 0x2c], 0
je 0x4d58c1
push dword [ebp + 8]
mov ecx, dword [ebx + 0xa4]
call fcn.004bbd20
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov esi, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
mov dword [ebp - 0xc], edx
mov eax, 0x6e7a86
mov dword [ebp - 8], 0x4000000
cmovne eax, edx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.0046dd20
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 0x16]
push edx
push esi
push eax
call fcn.004c2920
cmp byte [ebp - 8], 0
je 0x4d5872
push dword [ebp - 0x14]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 7], 0
je 0x4d5883
push dword [ebp - 0x10]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 6], 0
je 0x4d5894
push dword [ebp - 0xc]
call fcn.005519fa
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4d589e
push eax
call edi
lea ecx, [ebp - 0x8c]
mov bl, 1
call fcn.00452590
push dword [ebp - 0x38]
call fcn.005519fa
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x8c]
xor bl, bl
call fcn.00452590
push dword [ebp - 0x38]
call fcn.005519fa
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0xbc]
call fcn.004582e0
push esi
push str.Auto_proxy_check_failed__last_errror___d_n
push eax
push 1
push 4
push 0
push 0x1f
push 0
push 0
call fcn.00451380
add esp, 0x24
lea ecx, [ebp - 0x8c]
call fcn.00452590
push dword [ebp - 0x38]
call fcn.005519fa
add esp, 4
lea ecx, [ebp - 0xbc]
call fcn.004582e0
push str.Auto_proxy_complete_n
push eax
push 5
push 4
push 0
push 0x1f
push 0
push 0
call fcn.00451380
add esp, 0x20
mov edi, dword [ebp + 8]
mov eax, 0x60
mov esi, 0x78
cmp byte [edi + 0xf2], 0
cmove esi, eax
add esi, ebx
mov ecx, esi
call fcn.004c2e70
test al, al
je 0x4d59b3
cmp word [esi + 0x16], 0
je 0x4d59b3
lea eax, [ebx + 0x90]
mov ecx, ebx
push eax
push edi
call fcn.004d5df0
test al, al
jne 0x4d59b3
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x14], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebx + 0xb0]
mov dword [ebp - 4], 0
mov byte [ebp + 0x13], 0
test edi, edi
jne 0x4d59d8
mov edi, 0x6e7a86
test cl, cl
je 0x4d5a17
push 4
push 0
push 0
push edi
mov byte [ebp + 0x13], 1
call fcn.0054df30
mov esi, eax
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.005519f1
push 0
push esi
mov esi, eax
mov dword [ebp - 4], eax
push esi
push edi
call fcn.0054df30
add esp, 0x24
jmp 0x4d5a1d
mov esi, dword [ebx + 0x104]
mov eax, dword [ebx + 0x100]
mov dword [ebp - 0x48], esi
test eax, eax
jne 0x4d5a55
mov eax, dword [ebx + 0xf8]
test eax, eax
je 0x4d5be0
push 0
push 0
push 0
push 0
push str.SteamHTTPClient
call eax
mov dword [ebx + 0x100], eax
test eax, eax
je 0x4d5be0
cmp dword [ebx + 0xf4], 0
je 0x4d5be0
mov ecx, dword [ebp + 8]
mov edi, 0x6e7a86
mov edx, edi
mov eax, dword [ecx + 0x5c]
test eax, eax
cmovne edx, eax
mov eax, dword [ecx + 0x58]
test eax, eax
mov ecx, edi
push edx
cmovne ecx, eax
mov eax, 0x6eaa0c
push ecx
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0xf2], 0
cmove eax, edi
push eax
lea eax, [ebp - 0x24]
push str.http_s:___s_s
push eax
call fcn.0049f960
mov eax, dword [ebx + 0xf4]
add esp, 0x14
cmp byte [ebp - 0x15], 0
mov dword [ebp - 0x64], 2
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], eax
jge 0x4d5ae5
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4d5ae8
mov dword [ebp - 0x40], edi
jmp 0x4d5aeb
lea eax, [ebp - 0x24]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x34], 0x4000000
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
call fcn.004547c0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push eax
push dword [ebx + 0x100]
call dword [ebp - 0x4c]
cmp byte [ebp - 0x34], 0
mov dword [ebp - 0x4c], eax
je 0x4d5b2e
push dword [ebp - 0x40]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x33], 0
je 0x4d5b3f
push dword [ebp - 0x3c]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 0x32], 0
je 0x4d5b50
push dword [ebp - 0x38]
call fcn.005519fa
add esp, 4
cmp dword [ebp - 0x4c], 0
jne 0x4d5c56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2eef
jne 0x4d5bc9
cmp byte [ebp - 0x15], 0
mov esi, dword [ebx + 0xf4]
mov dword [ebp - 0x50], 1
jge 0x4d5b88
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4d5b8b
mov eax, 0x6e7a86
jmp 0x4d5b8b
lea eax, [ebp - 0x24]
push 4
push eax
lea ecx, [ebp - 0x8c]
call fcn.0046ca20
mov ecx, eax
call fcn.004547c0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push eax
push dword [ebx + 0x100]
call esi
lea ecx, [ebp - 0x8c]
mov esi, eax
call fcn.00452590
test esi, esi
jne 0x4d5c56
mov esi, dword [ebp - 0x48]
cmp byte [ebp - 0x15], 0
jge 0x4d5be0
call fcn.0053aa60
push 0
push dword [ebp - 0x24]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
and dword [ebp - 0x78], 0xff0fffff
xor eax, eax
push esi
push str.Failed_to_evaluate_PAC_URL__ls_n
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x7c]
push eax
push 1
push 4
push 0
push 0x1f
push 0
mov byte [ebp - 0x75], 0
and dword [ebp - 0x78], 0xfff00000
push 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x60], 3
call fcn.00451380
add esp, 0x24
xor bl, bl
cmp byte [ebp + 0x13], 0
je 0x4d5c4b
push dword [ebp - 4]
call fcn.005519fa
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp - 0x15], 0
jge 0x4d5c6f
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x4d5c75
mov dword [ebp - 0x44], 0x6e7a86
jmp 0x4d5c75
lea eax, [ebp - 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0xbc]
test eax, eax
mov esi, str._direct_
cmovne esi, eax
call fcn.004582e0
push dword [ebp - 0x44]
push esi
push dword [ebp - 0x48]
push str.Explicit_PAC_URL__ls_returned__ls_for__s_n
push eax
push 5
push 4
push 0
push 0x1f
push 0
push 0
call fcn.00451380
mov eax, dword [ebp - 0x28]
add esp, 0x2c
test eax, eax
je 0x4d5cbc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x2c], 0
je 0x4d5d46
push dword [ebp + 8]
mov ecx, dword [ebx + 0xa4]
call fcn.004bbd20
mov ecx, dword [ebp - 0x2c]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], 0x4000000
cmovne edi, eax
mov dword [ebp - 0x14], edi
call fcn.0046dd20
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 0x16]
push edx
push esi
push eax
call fcn.004c2920
cmp byte [ebp - 8], 0
je 0x4d5d17
push dword [ebp - 0x14]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 7], 0
je 0x4d5d28
push dword [ebp - 0x10]
call fcn.005519fa
add esp, 4
cmp byte [ebp - 6], 0
je 0x4d5d39
push dword [ebp - 0xc]
call fcn.005519fa
add esp, 4
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov bl, 1
jmp 0x4d5d48
xor bl, bl
cmp byte [ebp - 0x15], 0
jge 0x4d5c3a
call fcn.0053aa60
push 0
push dword [ebp - 0x24]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
jmp 0x4d5c3a