Function at 0x49e68a
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x61b374
pop ebp
jmp 0x49e695
push 0x18c
mov eax, 0x55e623
call fcn.004cd1e4
mov esi, ecx
mov dword [ebp - 0x108], esi
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x12c], eax
mov ebx, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x20]
push 7
mov dword [ebp - 0x130], eax
xor eax, eax
pop ecx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edi
mov word [ebp - 0x5c], ax
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov word [ebp - 0x44], ax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
push dword [0x600bd0]
mov dword [ebp - 0x104], edi
call fcn.0046620d
movzx ecx, byte [ebp + 0x1c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x120], ecx
test cl, cl
jne 0x49e745
mov ecx, esi
call fcn.0049e536
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x12c]
mov byte [ebp - 4], 3
test eax, eax
je 0x49e770
push eax
lea ecx, [ebp - 0x74]
call fcn.00406337
push eax
lea ecx, [ebp - 0x5c]
call fcn.004190f4
push edi
push 1
lea ecx, [ebp - 0x74]
call fcn.0040779d
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x49e79d
push eax
lea ecx, [ebp - 0x8c]
call fcn.00406337
push eax
lea ecx, [ebp - 0x44]
call fcn.004190f4
push edi
push 1
lea ecx, [ebp - 0x8c]
call fcn.0040779d
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x49e7ca
push eax
lea ecx, [ebp - 0xa4]
call fcn.00406337
push eax
lea ecx, [ebp - 0x2c]
call fcn.004190f4
push edi
push 1
lea ecx, [ebp - 0xa4]
call fcn.0040779d
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.0049e2ef
lea eax, [esi + 0x10]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
lock inc dword [ebp - 0x14c]
push dword [ebp - 0x11c]
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 5
push eax
mov ecx, esi
call fcn.0049efb5
cmp byte [ebp - 0x120], 0
mov esi, dword [eax]
jne 0x49e8c0
mov ecx, dword [ebp - 0x108]
mov eax, dword [ecx]
mov dword [ebp - 0x170], eax
cmp esi, eax
je 0x49e8c0
call fcn.0049e536
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.0049e2ef
push eax
lea ecx, [ebp - 0x11c]
call fcn.004bfcaf
mov ecx, dword [ebp - 0x184]
test ecx, ecx
je 0x49e8a1
call fcn.004099bc
push dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0x174]
push eax
call fcn.0049efb5
mov esi, dword [eax]
jmp 0x49e83c
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 4
call fcn.00411e33
mov ecx, dword [ebp - 0x108]
mov eax, dword [ecx]
mov dword [ebp - 0x178], eax
cmp esi, eax
jne 0x49eab3
lea eax, [ecx + 0xc]
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
lea ecx, [ebp - 0x140]
call fcn.00411f3f
push dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0x17c]
push eax
mov byte [ebp - 4], 6
call fcn.0049efb5
cmp byte [ebp - 0x120], 0
mov esi, dword [eax]
jne 0x49e9af
mov eax, dword [ebp - 0x108]
cmp esi, dword [eax]
je 0x49e9bd
mov ecx, eax
call fcn.0049e536
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.0049e2ef
push eax
lea ecx, [ebp - 0x11c]
call fcn.004bfcaf
mov ecx, dword [ebp - 0x18c]
test ecx, ecx
je 0x49e993
call fcn.004099bc
push dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0x180]
push eax
call fcn.0049efb5
mov esi, dword [eax]
jmp 0x49e934
mov eax, dword [ebp - 0x108]
cmp esi, dword [eax]
jne 0x49eaa2
push dword [ebp - 0x110]
mov eax, dword [ebp - 0x124]
push eax
mov eax, dword [ebp - 0x128]
push eax
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0049e35f
mov ebx, dword [ebp - 0x10c]
mov byte [ebp - 4], 7
test ebx, ebx
je 0x49ea91
cmp dword [ebp - 0x138], 0
sete al
test al, al
sete al
test al, al
je 0x49ea8a
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x100]
call fcn.0049e423
lea eax, [ebp - 0x138]
mov dword [ebp - 0xac], edi
push eax
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xa8], edi
call fcn.0054567d
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x198]
mov byte [ebp - 4], 8
push eax
call fcn.0049e2c8
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
je 0x49ea7d
call fcn.004099bc
lea ecx, [ebp - 0x100]
call fcn.0049e51f
jmp 0x49ea93
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ebx, edi
mov ecx, dword [ebp - 0x134]
test ecx, ecx
je 0x49eaa2
call fcn.004099bc
lea ecx, [ebp - 0x144]
call fcn.00411e1b
mov ecx, dword [ebp - 0x108]
cmp esi, dword [ecx]
je 0x49eac7
mov eax, dword [esi + 0x64]
mov ebx, dword [eax + 4]
lea edx, [eax + 8]
xor eax, eax
inc eax
lock xadd dword [edx], eax
test ebx, ebx
je 0x49eadd
mov ecx, dword [ebp - 0x130]
lea eax, [ebp - 0x11c]
push eax
call fcn.004ca2e2
mov ecx, dword [ebp - 0x118]
test ecx, ecx
je 0x49eaec
call fcn.004099bc
mov eax, edi
jmp 0x49eb3e
test eax, eax
jns 0x49ebac
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x168]
mov dword [ebp - 0x158], str.SH_ErrorCode
push eax
push dword [0x6023a8]
mov dword [ebp - 0x15c], 0x596418
push 0xa
push 0x33f
push 0x7e325d
mov dword [ebp - 0x164], 0x58a670
mov dword [ebp - 0x160], str.Exception_was_thrown
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], 0x593f0c
call fcn.0049deb4
test ebx, ebx
je 0x49ebac
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ebx, edi
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040779d
push edi
push 1
lea ecx, [ebp - 0x44]
call fcn.0040779d
push edi
push 1
lea ecx, [ebp - 0x5c]
call fcn.0040779d
mov eax, ebx
call fcn.004cd135
ret 0x1c