Function at 0x4bd182
Capabilities:
Initialize winhttp library

Disassembly:
mov eax, 0x61293c
call fcn.00609528
sub esp, 0xe14
push ebx
push esi
mov ebx, 0x7193d8
mov esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0xc0]
test byte [eax], 1
je 0x4bd1c4
cmp byte [0x7193f4], 0
je 0x4bd1c4
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x4bd39d
xor ebx, ebx
push edi
cmp dword [0x7193f0], ebx
jne 0x4bd212
push 0x10000000
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov eax, dword [0x7193f0]
cmp edi, eax
je 0x4bd1fc
test eax, eax
je 0x4bd1f5
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, edi
mov dword [0x7193f0], eax
test eax, eax
jne 0x4bd212
push 0x7193d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x4bd39c
xor eax, eax
mov dword [esi + 0xcc], ebx
lea edi, [ebp - 0x1c]
mov dword [esi + 0xd0], ebx
stosd dword es:[edi], eax
mov dword [esi + 0xd4], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x7f
push 0x200
lea eax, [ebp - 0x220]
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
call fcn.004988e4
push 0x1ff
lea eax, [ebp - 0x620]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x220]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
lea edi, [esi + 0xc0]
mov word [ebp + eax*2 - 0x620], cx
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x620]
push eax
push dword [0x7193f0]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4bd2ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f94
jne 0x4bd3ad
mov byte [0x7193f4], 1
mov edi, dword [ebp - 0x10]
push 0x7193d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x4bd37e
cmp dword [ebp - 0x1c], 1
je 0x4bd37c
cmp dword [ebp - 0x1c], 3
jne 0x4bd37e
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4bd2dc
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0xe20]
push ebx
push ebx
push 0x3ff
push eax
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x18]
push ebx
push 0xfde9
call edi
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, ebx
test edx, edx
je 0x4bd347
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4bd31f
sub ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xa20]
push ebx
push ebx
push 0x3ff
push eax
sar ecx, 1
push ecx
push edx
push ebx
push 0xfde9
call edi
mov ecx, dword [ebp - 0x20]
mov byte [ebp + eax - 0xa20], bl
lea eax, [ebp - 0xa20]
push eax
mov byte [ebp + ecx - 0xe20], bl
mov ecx, esi
call fcn.004bcf9e
test al, al
jne 0x4bd37c
lea eax, [ebp - 0xe20]
mov ecx, esi
push eax
call fcn.004bd0ab
test al, al
je 0x4bd37e
mov bl, 1
cmp dword [ebp - 0x18], 0
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x4bd38f
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x14], 0
je 0x4bd39a
push dword [ebp - 0x14]
call esi
mov al, bl
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2eef
jne 0x4bd2ac
lea eax, [ebp - 0x1c]
mov dword [esi + 0xd4], 1
push eax
push edi
lea eax, [ebp - 0x620]
push eax
push dword [0x7193f0]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
mov edi, eax
jmp 0x4bd2af