Function at 0x42ec70
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4baf60
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
push ebx
push esi
push edi
mov eax, dword [0x4ff684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x4f0], 0
je 0x42ed1d
call fcn.0041a770
push 3
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], str.EventSender.cpp
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x10], 0xc8
call fcn.00412b24
mov edx, str.Event_Sender_already_initialized_for_AWS
lea ecx, [ebp - 0xb8]
call fcn.0041a670
lea ecx, [ebp - 0x60]
call fcn.0041c460
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.0047379d
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 0x42ee96
push 0
push 0
push 0
push 0
push 0x4ee0c0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x4f4], eax
test eax, eax
je 0x42ee96
push 0
push dword [esi + 0x510]
lea edi, [esi + 0x56c]
mov dword [esi + 0x518], 0x3c
lea ebx, [esi + 0x518]
mov ecx, edi
call fcn.00425270
cmp dword [edi + 0x14], 8
jb 0x42ed78
mov edi, dword [edi]
mov eax, dword [esi + 0x57c]
mov dword [esi + 0x528], edi
lea edi, [esi + 0x554]
push 0
push dword [esi + 0x510]
mov ecx, edi
mov dword [esi + 0x52c], eax
call fcn.00425270
cmp dword [edi + 0x14], 8
jb 0x42eda7
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 0x42edc7
mov eax, dword [eax]
push ebx
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x42ee56
call fcn.0041a770
push 1
lea ecx, [ebp - 0x158]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], str.EventSender.cpp
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x10], 0xdf
call fcn.00412b24
mov edx, str.WinHttpCrackUrl_failed_for_AWS:
lea ecx, [ebp - 0x158]
call fcn.00412b80
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x158]
call fcn.00416e70
lea ecx, [ebp - 0x100]
call fcn.0041c460
mov dword [ebp - 4], 4
lea eax, [ebp - 0x100]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
jmp 0x42eef0
cmp word [esi + 0x530], 0
jne 0x42ee7b
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.0041a770
push 1
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
call fcn.0041a500
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], str.EventSender.cpp
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x10], 0xcf
call fcn.00412b24
mov edx, str.Unable_to_open_HTTP_session_for_AWS
lea ecx, [ebp - 0xb8]
call fcn.00412b80
lea ecx, [ebp - 0x60]
call fcn.0041c460
mov dword [ebp - 4], 3
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], vtable.std::ios_base.0
push eax
call fcn.0047379d
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