Function at 0x1f8d5f45
Capabilities:
Initialize winhttp library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [0x1f97b00c]
mov ebx, 0x1f97b00c
cmp eax, ebx
je 0x1f8d5f7b
test dword [eax + 0x1c], 0x400
je 0x1f8d5f7b
push esi
push 0x1f879438
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1f8d5fa4
push edi
mov esi, 0x54f
push esi
push 0x1f8787fc
push 0x34d
push 0x1f879448
call fcn.1f8a7bdf
mov eax, esi
jmp 0x1f8d643b
cmp dword [ebp + 0xc], 0
jne 0x1f8d5fbd
push edi
mov esi, 0x54f
push esi
push 0x1f879410
push 0x34e
jmp 0x1f8d5f93
lea ecx, [esi + 0x22f8]
call fcn.1f8a79c7
test eax, eax
jne 0x1f8d5fdb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
push 0xe
pop eax
jmp 0x1f8d643b
lea eax, [esi + 0x2b54]
push eax
push edi
mov ecx, esi
call fcn.1f8ce30b
test eax, eax
je 0x1f8d6021
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x48]
mov esi, eax
mov eax, dword [0x1f97b00c]
cmp eax, ebx
je 0x1f8d5f9d
test dword [eax + 0x1c], 0x200
je 0x1f8d5f9d
push esi
push 0x1f879438
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
jmp 0x1f8d5f9d
push edi
mov ecx, esi
call fcn.1f8ccfc0
test eax, eax
jne 0x1f8d643b
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.1f8d1aca
mov edi, eax
test edi, edi
jne 0x1f8d640d
mov ecx, esi
mov byte [ebp + 0xc], al
call fcn.1f8cc10b
cmp eax, 2
jne 0x1f8d6059
mov byte [ebp + 0xc], 1
push dword [ebp + 0xc]
lea ecx, [esi + 0x2b2c]
call fcn.1f8ad463
xor edi, edi
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x1f8d6081
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push eax
call dword [edx + 0x20]
mov eax, dword [ebp + 0xc]
jmp 0x1f8d643b
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x22a8], eax
cmp eax, edi
jne 0x1f8d60a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1f8d6404
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [esi + 0x2b48]
call fcn.1f896515
mov eax, dword [esi + 0x2b48]
cmp eax, edi
jne 0x1f8d60fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1f97b00c]
cmp eax, ebx
je 0x1f8d6404
test dword [eax + 0x1c], 0x200
je 0x1f8d6404
push edi
push 0x1f879438
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
jmp 0x1f8d6404
push 0x110
push 0xffffffffffffffff
push esi
push 0x1f8ce840
push eax
lea eax, [esi + 0x2b4c]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x1f8d6147
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1f97b00c]
cmp eax, ebx
je 0x1f8d6404
test dword [eax + 0x1c], 0x200
je 0x1f8d6404
push edi
push 0x1f879438
push 0x2f
jmp 0x1f8d60ec
mov ecx, esi
call fcn.1f8cd33d
test al, al
je 0x1f8d6161
call fcn.1f8d0404
mov edi, eax
test edi, edi
jne 0x1f8d6404
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 0x218]
xor ecx, ecx
cmp eax, 2
push 0x10000000
setne cl
push edi
push edi
push ecx
push 0x1f87a188
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x2028], eax
cmp eax, edi
jne 0x1f8d61cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1f97b00c]
cmp eax, ebx
je 0x1f8d6404
test dword [eax + 0x1c], 0x200
je 0x1f8d6404
push edi
push 0x1f879438
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f895d0a
jmp 0x1f8d6404
push 4
lea ecx, [ebp - 4]
push ecx
push 0x49
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1f8d6212
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1f97b00c]
cmp eax, ebx
je 0x1f8d6404
test dword [eax + 0x1c], 0x200
je 0x1f8d6404
push edi
push 0x1f879438
push 0x31
jmp 0x1f8d61bc
push 4
lea eax, [ebp - 4]
push eax
push 0x58
push dword [esi + 0x2028]
mov dword [ebp - 4], edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1f8d625c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1f97b00c]
cmp eax, ebx
je 0x1f8d6404
test dword [eax + 0x1c], 0x200
je 0x1f8d6404
push edi
push 0x1f879438
push 0x32
jmp 0x1f8d61bc
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x34]
cmp dword [eax + 0x210], edi
je 0x1f8d62dc
push 4
lea eax, [ebp - 4]
push eax
push 0x4d
push dword [esi + 0x2028]
mov dword [ebp - 4], 2
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1f8d62b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1f97b00c]
cmp eax, ebx
je 0x1f8d6404
test dword [eax + 0x1c], 0x200
je 0x1f8d6404
push edi
push 0x1f879438
push 0x33
jmp 0x1f8d61bc
push 0x1f8721c8
mov dword [esi + 0x2b68], 2
call fcn.1f8a76d7
test al, al
je 0x1f8d62dc
push edi
push edi
push 0x1f8721c8
call fcn.1f8a751c
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x34]
mov ecx, dword [eax + 0x180]
mov eax, dword [eax + 0x184]
push edi
push ecx
push eax
push dword [esi + 0x2028]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 0x202c], eax
cmp eax, edi
jne 0x1f8d6369
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1f97b00c]
cmp eax, ebx
je 0x1f8d6340
test dword [eax + 0x1c], 0x200
je 0x1f8d6340
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 0x34]
push edi
push dword [ecx + 0x184]
push 0x1f879438
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f8b69b4
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x34]
push dword [eax + 0x180]
mov ecx, dword [ebp + 8]
push dword [eax + 0x184]
mov edx, dword [ecx]
push 0x4033c39f
push edi
push ecx
call dword [edx + 0x1c]
add esp, 0x14
jmp 0x1f8d640d
mov ecx, dword [0x1f97b00c]
cmp ecx, ebx
je 0x1f8d6390
test dword [ecx + 0x1c], 0x400
je 0x1f8d6390
push eax
push esi
push 0x1f879438
push 0x35
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.1f89f5b3
push edi
push 0x7f0c30
push 0x1f8d5e2a
push dword [esi + 0x202c]
mov dword [ebp - 8], esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
je 0x1f8d63cb
push 4
lea eax, [ebp - 8]
push eax
push 0x2d
push dword [esi + 0x202c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x1f8d63cb
xor eax, eax
jmp 0x1f8d643b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1f97b00c]
cmp eax, ebx
je 0x1f8d6404
test dword [eax + 0x1c], 0x200
je 0x1f8d6404
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 0x34]
push edi
push dword [ecx + 0x184]
push 0x1f879438
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f8b69b4
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push edi
call dword [eax + 0x20]
lea ebx, [esi + 0x202c]
mov eax, dword [ebx]
test eax, eax
je 0x1f8d6423
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
and dword [ebx], 0
add esi, 0x2028
mov eax, dword [esi]
test eax, eax
je 0x1f8d6439
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
and dword [esi], 0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8