Function at 0x4b4839
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x63c9c8
pop ebp
jmp 0x4b4844
push 0x184
mov eax, 0x55ec47
call fcn.0050b648
mov edi, ecx
mov dword [ebp - 0x128], edi
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x20]
push 7
mov dword [ebp - 0x130], eax
xor eax, eax
pop ecx
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x5c], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], ax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
push dword [0x606598]
mov dword [ebp - 0x104], ebx
call fcn.00415b32
movzx ecx, byte [ebp + 0x1c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x11c], ecx
test cl, cl
jne 0x4b48f2
mov ecx, edi
call fcn.004b46d4
mov dword [ebp - 0x104], eax
mov byte [ebp - 4], 3
test esi, esi
je 0x4b4917
push esi
lea ecx, [ebp - 0x74]
call fcn.00405753
push eax
lea ecx, [ebp - 0x5c]
call fcn.0042b85a
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.004069fb
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x4b4944
push eax
lea ecx, [ebp - 0x8c]
call fcn.00405753
push eax
lea ecx, [ebp - 0x44]
call fcn.0042b85a
push ebx
push 1
lea ecx, [ebp - 0x8c]
call fcn.004069fb
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x4b4971
push eax
lea ecx, [ebp - 0xa4]
call fcn.00405753
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042b85a
push ebx
push 1
lea ecx, [ebp - 0xa4]
call fcn.004069fb
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004b4466
lea eax, [edi + 0x10]
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x144], eax
push dword [eax]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
xor eax, eax
lea ecx, [ebp - 0x140]
inc eax
lock xadd dword [ecx], eax
push dword [ebp - 0x118]
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 5
push eax
mov ecx, edi
call fcn.004b5145
cmp byte [ebp - 0x11c], 0
mov esi, dword [eax]
jne 0x4b4a56
cmp esi, dword [edi]
je 0x4b4a56
mov ecx, edi
call fcn.004b46d4
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.004b4466
push eax
lea ecx, [ebp - 0x118]
call fcn.0042534a
mov ecx, dword [ebp - 0x17c]
test ecx, ecx
je 0x4b4a3e
call fcn.0041c7d8
push dword [ebp - 0x118]
lea eax, [ebp - 0x170]
mov ecx, edi
push eax
call fcn.004b5145
mov esi, dword [eax]
jmp 0x4b49e5
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x140]
test eax, eax
setne al
test al, al
je 0x4b4a86
or eax, 0xffffffff
lea ecx, [ebp - 0x140]
lock xadd dword [ecx], eax
mov eax, dword [ebp - 0x144]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
jmp 0x4b4a5a
cmp esi, dword [edi]
jne 0x4b4c4b
lea eax, [edi + 0xc]
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x148], ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
lea ecx, [ebp - 0x14c]
call fcn.00414333
push dword [ebp - 0x118]
lea eax, [ebp - 0x174]
mov byte [ebp - 4], 6
push eax
mov ecx, edi
call fcn.004b5145
cmp byte [ebp - 0x11c], 0
mov esi, dword [eax]
jne 0x4b4b4a
cmp esi, dword [edi]
je 0x4b4b52
mov ecx, edi
call fcn.004b46d4
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.004b4466
push eax
lea ecx, [ebp - 0x118]
call fcn.0042534a
mov ecx, dword [ebp - 0x184]
test ecx, ecx
je 0x4b4b32
call fcn.0041c7d8
push dword [ebp - 0x118]
lea eax, [ebp - 0x178]
mov ecx, edi
push eax
call fcn.004b5145
mov esi, dword [eax]
jmp 0x4b4ad9
cmp esi, dword [edi]
jne 0x4b4c38
push dword [ebp - 0x10c]
mov eax, dword [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x124]
push eax
push dword [ebp - 0x110]
push dword [ebp - 0x12c]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004b44d6
mov edi, dword [ebp - 0x108]
mov byte [ebp - 4], 7
test edi, edi
je 0x4b4c25
cmp dword [ebp - 0x138], 0
sete al
test al, al
sete al
test al, al
je 0x4b4c1e
push dword [ebp - 0x118]
lea ecx, [ebp - 0x100]
call fcn.004b459a
lea eax, [ebp - 0x138]
mov dword [ebp - 0xac], ebx
push eax
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xa8], ebx
call fcn.004275c8
mov ecx, dword [ebp - 0x128]
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 8
push eax
call fcn.004b443f
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
je 0x4b4c11
call fcn.0041c7d8
lea ecx, [ebp - 0x100]
call fcn.004b46a5
jmp 0x4b4c27
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, ebx
mov ecx, dword [ebp - 0x134]
test ecx, ecx
je 0x4b4c3e
call fcn.0041c7d8
jmp 0x4b4c3e
mov edi, dword [ebp - 0x108]
lea ecx, [ebp - 0x150]
call fcn.00424c65
jmp 0x4b4c51
mov edi, dword [ebp - 0x108]
mov eax, dword [ebp - 0x128]
cmp esi, dword [eax]
je 0x4b4c6b
mov eax, dword [esi + 0x64]
mov edi, dword [eax + 4]
lea edx, [eax + 8]
xor eax, eax
inc eax
lock xadd dword [edx], eax
test edi, edi
je 0x4b4c81
mov ecx, dword [ebp - 0x130]
lea eax, [ebp - 0x118]
push eax
call fcn.0042e1ae
mov ecx, dword [ebp - 0x114]
test ecx, ecx
je 0x4b4c90
call fcn.0041c7d8
mov eax, ebx
jmp 0x4b4ce2
test eax, eax
jns 0x4b4d50
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x168]
mov dword [ebp - 0x158], 0x5acd98
push eax
push dword [0x6243e0]
mov dword [ebp - 0x15c], 0x5acd90
push 0xa
push 0x33f
push 0x7e325d
mov dword [ebp - 0x164], str.Message
mov dword [ebp - 0x160], str.Exception_was_thrown
mov dword [ebp - method.Mso::Logging::StructuredObject_wchar_t_const___1_.virtual_0], 0x5ab5d8
call fcn.00450575
test edi, edi
je 0x4b4d50
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, ebx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004069fb
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.004069fb
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.004069fb
mov eax, edi
call fcn.0050b599
ret 0x1c