Function at 0x4935c0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560a20
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
push ebx
push esi
push edi
mov eax, dword [0x60b3c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x4f0], 0
je 0x49366d
call fcn.0045b3b0
push 3
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], str.EventSender.cpp
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x10], 0xc7
call fcn.00418540
mov edx, str.Event_Sender_already_initialized_for_AWS
lea ecx, [ebp - 0xb8]
call fcn.004185a0
lea ecx, [ebp - 0x60]
call fcn.00459e90
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.004f7d4c
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x4f4], 0
jne 0x493820
push 0
push 0
push 0
push 0
push 0x5f4644
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x4f4], eax
test eax, eax
je 0x493820
mov eax, dword [esi + 0x510]
lea ebx, [esi + 0x518]
lea edi, [esi + 0x56c]
mov dword [ebx], 0x3c
mov ecx, dword [edi + 0x10]
cmp eax, ecx
ja 0x4936cf
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4936c4
mov ecx, dword [edi]
xor edx, edx
mov dword [edi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x4936db
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.004581b0
cmp dword [edi + 0x14], 8
jb 0x4936e3
mov edi, dword [edi]
mov eax, dword [esi + 0x57c]
mov dword [esi + 0x528], edi
lea edi, [esi + 0x554]
mov dword [esi + 0x52c], eax
mov eax, dword [esi + 0x510]
mov ecx, dword [edi + 0x10]
cmp eax, ecx
ja 0x49371d
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x493712
mov ecx, dword [edi]
xor edx, edx
mov dword [edi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x493729
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.004581b0
cmp dword [edi + 0x14], 8
jb 0x493731
mov edi, dword [edi]
mov eax, dword [esi + 0x564]
mov dword [esi + 0x548], eax
lea eax, [esi + 0x500]
mov dword [esi + 0x544], edi
cmp dword [eax + 0x14], 8
jb 0x493751
mov eax, dword [eax]
push ebx
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x4937e0
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0x158]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], str.EventSender.cpp
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x10], 0xde
call fcn.00418540
mov edx, str.WinHttpCrackUrl_failed_for_AWS:
lea ecx, [ebp - 0x158]
call fcn.004185a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x158]
call fcn.0043d580
lea ecx, [ebp - 0x100]
call fcn.00459e90
mov dword [ebp - 4], 4
lea eax, [ebp - 0x100]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
jmp 0x49387a
cmp word [esi + 0x530], 0
jne 0x493805
cmp dword [esi + 0x524], 2
mov eax, 0x50
mov ecx, 0x1bb
cmove eax, ecx
mov word [esi + 0x530], ax
mov byte [esi + 0x4f0], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0045b3b0
push 1
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call fcn.0045b920
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], str.EventSender.cpp
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x10], 0xce
call fcn.00418540
mov edx, str.Unable_to_open_HTTP_session_for_AWS
lea ecx, [ebp - 0xb8]
call fcn.004185a0
lea ecx, [ebp - 0x60]
call fcn.00459e90
mov dword [ebp - 4], 3
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], vtable.std::ios_base.0
push eax
call fcn.004f7d4c
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret