Function at 0x4be16f
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a1a68
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x816078]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, ebx
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp + 0x20]
push 7
mov dword [ebp - 0x11c], eax
xor eax, eax
pop ecx
mov dword [ebp - 0x100], esi
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ecx
mov word [ebp - 0x78], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ecx
mov word [ebp - 0x60], ax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ecx
mov word [ebp - 0x48], ax
mov ecx, 0x6e3880
mov dword [ebp - 0xe4], ebx
call fcn.00432087
movzx ecx, byte [ebp + 0x1c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0xfc], ecx
test cl, cl
jne 0x4be236
call fcn.004be14e
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 3
test esi, esi
je 0x4be258
push esi
lea ecx, [ebp - 0x30]
call fcn.0040d412
push eax
lea ecx, [ebp - 0x78]
call fcn.0040d3a8
lea ecx, [ebp - 0x30]
call fcn.0040d475
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x4be27c
push eax
lea ecx, [ebp - 0x30]
call fcn.0040d412
push eax
lea ecx, [ebp - 0x60]
call fcn.0040d3a8
lea ecx, [ebp - 0x30]
call fcn.0040d475
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x4be2a0
push eax
lea ecx, [ebp - 0x30]
call fcn.0040d412
push eax
lea ecx, [ebp - 0x48]
call fcn.0040d3a8
lea ecx, [ebp - 0x30]
call fcn.0040d475
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xe0]
push eax
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0xf0]
call fcn.004bed78
push ecx
push 0x82a1e4
lea ecx, [ebp - 0x138]
call fcn.00433073
mov byte [ebp - 4], 5
lea eax, [ebp - 0x128]
push dword [ebp - 0xf0]
mov ecx, 0x82a1d4
push eax
call fcn.004be8af
cmp byte [ebp - 0xfc], 0
mov esi, dword [eax]
jne 0x4be37e
cmp esi, dword [0x82a1d4]
je 0x4be37e
call fcn.004be14e
mov dword [ebp - 0xe4], eax
lea edx, [ebp - 0x78]
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x124]
call fcn.004bed78
push eax
lea ecx, [ebp - 0xf0]
call fcn.0041cafc
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x120]
test ecx, ecx
je 0x4be35f
call fcn.00412707
mov byte [ebp - 4], 5
lea eax, [ebp - 0x12c]
push dword [ebp - 0xf0]
mov ecx, 0x82a1d4
push eax
call fcn.004be8af
mov esi, dword [eax]
jmp 0x4be302
lea ecx, [ebp - 0x138]
call fcn.00433050
cmp esi, dword [0x82a1d4]
jne 0x4be566
push ecx
push 0x82a1e0
lea ecx, [ebp - 0x24]
call fcn.004330c5
mov byte [ebp - 4], 7
lea eax, [ebp - 0x120]
push dword [ebp - 0xf0]
mov ecx, 0x82a1d4
push eax
call fcn.004be8af
cmp byte [ebp - 0xfc], 0
mov esi, dword [eax]
jne 0x4be44d
cmp esi, dword [0x82a1d4]
je 0x4be459
call fcn.004be14e
mov dword [ebp - 0xe4], eax
lea edx, [ebp - 0x78]
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x114]
call fcn.004bed78
push eax
lea ecx, [ebp - 0xf0]
call fcn.0041cafc
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x110]
test ecx, ecx
je 0x4be42e
call fcn.00412707
mov byte [ebp - 4], 7
lea eax, [ebp - 0xfc]
push dword [ebp - 0xf0]
mov ecx, 0x82a1d4
push eax
call fcn.004be8af
mov esi, dword [eax]
jmp 0x4be3cd
cmp esi, dword [0x82a1d4]
jne 0x4be556
push dword [ebp - 0xf8]
mov eax, dword [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x10c]
push eax
push dword [ebp - 0xe0]
push dword [ebp - 0x100]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea edx, [ebp - 0xe8]
mov dword [ebp - 0xe8], eax
lea ecx, [ebp - 0x104]
call fcn.004beddf
mov byte [ebp - 4], 9
mov edi, dword [ebp - 0xe8]
test edi, edi
je 0x4be541
cmp dword [ebp - 0x104], 0
je 0x4be53a
push dword [ebp - 0xf0]
lea ecx, [ebp - 0xdc]
call fcn.004be836
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
test ecx, ecx
je 0x4be4e6
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0x100]
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], ecx
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 0xa
push eax
call fcn.004beec1
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x114]
push eax
call fcn.004bef2d
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x4be52d
call fcn.00412707
lea ecx, [ebp - 0xdc]
call fcn.004b0052
jmp 0x4be543
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, ebx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x100]
test ecx, ecx
je 0x4be556
call fcn.00412707
lea ecx, [ebp - 0x24]
call fcn.0043309e
cmp esi, dword [0x82a1d4]
je 0x4be576
mov eax, dword [esi + 0x64]
mov edi, dword [eax + 4]
lea ecx, [eax + 8]
xor eax, eax
inc eax
lock xadd dword [ecx], eax
mov ecx, dword [ebp - 0xec]
test edi, edi
je 0x4be5b7
test ecx, ecx
je 0x4be58e
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0xec]
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0xf0]
mov dword [edx], eax
mov eax, dword [edx + 4]
mov dword [edx + 4], ecx
mov byte [ebp - 4], 0xd
test eax, eax
je 0x4be5b7
mov ecx, eax
call fcn.00412707
mov ecx, dword [ebp - 0xec]
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x4be5c4
call fcn.00412707
mov eax, ebx
jmp 0x4be616
test eax, eax
jns 0x4be67e
mov dword [ebp - 0x110], eax
mov ecx, 0x7e325d
lea eax, [ebp - 0x118]
mov dword [ebp - 0x114], str.SH_ErrorCode
push eax
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x118], 0x6dbe44
push eax
push str._CWinHttpSessionManager__WinHttpOpen
push 0xa
mov dword [ebp - 0xf0], str.Message
mov dword [ebp - 0xec], str.Exception_was_thrown
mov dword [ebp - 0xf4], 0x6f5b30
call fcn.004b095e
test edi, edi
je 0x4be67e
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, ebx
lea ecx, [ebp - 0x48]
call fcn.0040d475
lea ecx, [ebp - 0x60]
call fcn.0040d475
lea ecx, [ebp - 0x78]
call fcn.0040d475
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0064c681
mov esp, ebp
pop ebp
ret 0x1c