Function at 0x1f8eac12
Capabilities:
Initialize winhttp library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f8eac44
test dword [eax + 0x1c], 0x1000
je 0x1f8eac44
push esi
push 0x1f87ef20
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp edx, ebx
jne 0x1f8eac62
push ebx
push 0x54f
push 0x1f87f08c
push 0x120
jmp 0x1f8eaedf
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1f8eaecf
cmp word [eax], bx
je 0x1f8eaecf
mov ecx, dword [ebp + 0x14]
cmp ecx, 1
je 0x1f8eac98
cmp ecx, 4
je 0x1f8eac98
push edx
push 0x54f
push 0x1f877bf0
push 0x123
jmp 0x1f8eaedf
cmp dword [ebp + 0xc], ebx
jne 0x1f8eacb2
push edx
push 0x54f
push 0x1f87f084
push 0x124
jmp 0x1f8eaedf
push dword [ebp + 0xc]
mov dword [esi + 8], ecx
lea edi, [esi + 0x20]
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.1f8c86bf
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax]
push ebx
push ebx
push ebx
push ebx
push 0x1f87f028
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
cmp eax, ebx
jne 0x1f8ead1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f8ead10
test dword [eax + 0x1c], 0x800
je 0x1f8ead10
push esi
push 0x1f87ef20
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push esi
call dword [eax + 0x20]
jmp 0x1f8eaee9
mov ecx, 0x3a98
push ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x1f8ead78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f8ead62
test dword [eax + 0x1c], 0x800
je 0x1f8ead62
push edi
push 0x1f87ef20
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push edi
call dword [eax + 0x20]
push esi
mov ecx, esi
call fcn.1f8e92f7
jmp 0x1f8eaee9
push ebx
push 0x50
push 0x1f879750
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x1f8eadb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f8ead62
test dword [eax + 0x1c], 0x800
je 0x1f8ead62
push edi
push 0x1f87ef20
push 0x1b
jmp 0x1f8ead57
push ebx
push ebx
push 1
push ebx
lea edi, [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov ecx, edi
call fcn.1f896515
cmp dword [edi], ebx
jne 0x1f8eae19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f8eae00
test dword [eax + 0x1c], 0x800
je 0x1f8eae00
push edi
push 0x1f87ef20
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push edi
call dword [eax + 0x20]
lea eax, [esi + 4]
push eax
mov ecx, esi
call fcn.1f8e92f7
jmp 0x1f8ead6b
call fcn.1f8a773b
test al, al
je 0x1f8eae43
push 0x1f871bb8
call fcn.1f8a76d7
test al, al
je 0x1f8eae43
lea eax, [esi + 0x24]
push eax
call fcn.1f8a690e
lea eax, [esi + 0x24]
push eax
push ebx
call fcn.1f8a779b
push 0x110
push esi
push 0x1f8eabb0
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x1f8eaea3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f8eae8b
test dword [eax + 0x1c], 0x800
je 0x1f8eae8b
push dword [ebp + 0xc]
push 0x1f87ef20
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x20]
push ebx
mov ecx, edi
call fcn.1f8964a7
jmp 0x1f8eae09
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f8eaecb
test dword [eax + 0x1c], 0x1000
je 0x1f8eaecb
push esi
push 0x1f87ef20
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
mov al, 1
jmp 0x1f8eaeeb
push edx
push 0x54f
push 0x1f87f01c
push 0x121
push 0x1f87ef30
call fcn.1f8a7bdf
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0x10