Function at 0x100a52dc
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101700bc
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x1020f334]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, ebx
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0x20]
push 7
mov dword [ebp - 0x10c], eax
xor eax, eax
pop ecx
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ecx
mov word [ebp - 0x78], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ecx
mov word [ebp - 0x60], ax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ecx
mov word [ebp - 0x48], ax
mov ecx, 0x101b0c40
mov dword [ebp - 0xe4], ebx
call fcn.1000503d
movzx ecx, byte [ebp + 0x1c]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0xf8], ecx
test cl, cl
jne 0x100a53a3
call fcn.100a52bb
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 3
test esi, esi
je 0x100a53c5
push esi
lea ecx, [ebp - 0x30]
call fcn.10009449
push eax
lea ecx, [ebp - 0x78]
call fcn.1000927f
lea ecx, [ebp - 0x30]
call fcn.1000860f
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x100a53e9
push eax
lea ecx, [ebp - 0x30]
call fcn.10009449
push eax
lea ecx, [ebp - 0x60]
call fcn.1000927f
lea ecx, [ebp - 0x30]
call fcn.1000860f
mov eax, dword [ebp - 0x104]
test eax, eax
je 0x100a540d
push eax
lea ecx, [ebp - 0x30]
call fcn.10009449
push eax
lea ecx, [ebp - 0x48]
call fcn.1000927f
lea ecx, [ebp - 0x30]
call fcn.1000860f
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xe0]
push eax
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0xec]
call fcn.100a5ef3
push ecx
push 0x10217f74
lea ecx, [ebp - 0x118]
call fcn.1002c9e0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x130]
push dword [ebp - 0xec]
mov ecx, 0x10217f64
push eax
call fcn.100a5a29
cmp byte [ebp - 0xf8], 0
mov esi, dword [eax]
jne 0x100a54eb
cmp esi, dword [0x10217f64]
je 0x100a54eb
call fcn.100a52bb
mov dword [ebp - 0xe4], eax
lea edx, [ebp - 0x78]
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x124]
call fcn.100a5ef3
push eax
lea ecx, [ebp - 0xec]
call fcn.100349e1
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x120]
test ecx, ecx
je 0x100a54cc
call fcn.10031696
mov byte [ebp - 4], 5
lea eax, [ebp - 0x134]
push dword [ebp - 0xec]
mov ecx, 0x10217f64
push eax
call fcn.100a5a29
mov esi, dword [eax]
jmp 0x100a546f
lea ecx, [ebp - 0x118]
call fcn.1002c9bd
cmp esi, dword [0x10217f64]
jne 0x100a56d3
push ecx
push 0x10217f70
lea ecx, [ebp - 0x24]
call fcn.1002ca32
mov byte [ebp - 4], 7
lea eax, [ebp - 0x120]
push dword [ebp - 0xec]
mov ecx, 0x10217f64
push eax
call fcn.100a5a29
cmp byte [ebp - 0xf8], 0
mov esi, dword [eax]
jne 0x100a55ba
cmp esi, dword [0x10217f64]
je 0x100a55c6
call fcn.100a52bb
mov dword [ebp - 0xe4], eax
lea edx, [ebp - 0x78]
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x12c]
call fcn.100a5ef3
push eax
lea ecx, [ebp - 0xec]
call fcn.100349e1
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x128]
test ecx, ecx
je 0x100a559b
call fcn.10031696
mov byte [ebp - 4], 7
lea eax, [ebp - 0xf8]
push dword [ebp - 0xec]
mov ecx, 0x10217f64
push eax
call fcn.100a5a29
mov esi, dword [eax]
jmp 0x100a553a
cmp esi, dword [0x10217f64]
jne 0x100a56c3
push dword [ebp - 0xf4]
mov eax, dword [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x108]
push eax
push dword [ebp - 0xe0]
push dword [ebp - 0xfc]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea edx, [ebp - 0xf0]
mov dword [ebp - 0xf0], eax
lea ecx, [ebp - 0x100]
call fcn.100a5f59
mov byte [ebp - 4], 9
mov edi, dword [ebp - 0xf0]
test edi, edi
je 0x100a56ae
cmp dword [ebp - 0x100], 0
je 0x100a56a7
push dword [ebp - 0xec]
lea ecx, [ebp - 0xdc]
call fcn.100a59b0
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
test ecx, ecx
je 0x100a5653
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0xfc]
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], ecx
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 0xa
push eax
call fcn.100a603a
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x12c]
push eax
call fcn.100a60a6
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x100a569a
call fcn.10031696
lea ecx, [ebp - 0xdc]
call fcn.1009b22e
jmp 0x100a56b0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, ebx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xfc]
test ecx, ecx
je 0x100a56c3
call fcn.10031696
lea ecx, [ebp - 0x24]
call fcn.1002ca0b
cmp esi, dword [0x10217f64]
je 0x100a56e3
mov eax, dword [esi + 0x64]
mov edi, dword [eax + 4]
lea ecx, [eax + 8]
xor eax, eax
inc eax
lock xadd dword [ecx], eax
mov ecx, dword [ebp - 0xe8]
test edi, edi
je 0x100a5724
test ecx, ecx
je 0x100a56fb
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0xe8]
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0xec]
mov dword [edx], eax
mov eax, dword [edx + 4]
mov dword [edx + 4], ecx
mov byte [ebp - 4], 0xd
test eax, eax
je 0x100a5724
mov ecx, eax
call fcn.10031696
mov ecx, dword [ebp - 0xe8]
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x100a5731
call fcn.10031696
mov eax, ebx
jmp 0x100a5783
test eax, eax
jns 0x100a57ec
mov dword [ebp - 0x20], eax
mov ecx, 0x7e325d
xor eax, eax
mov dword [ebp - 0x24], str.SH_ErrorCode
mov word [ebp - 0x1c], ax
mov word [ebp - 0x110], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x28], 0x1019a90c
push eax
push str._CWinHttpSessionManager__WinHttpOpen
push 0xa
mov dword [ebp - 0x118], str.Message
mov dword [ebp - 0x114], str.Exception_was_thrown
mov dword [ebp - 0x11c], 0x101971c0
call fcn.1009bff5
test edi, edi
je 0x100a57ec
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, ebx
lea ecx, [ebp - 0x48]
call fcn.1000860f
lea ecx, [ebp - 0x60]
call fcn.1000860f
lea ecx, [ebp - 0x78]
call fcn.1000860f
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.100042bb
mov esp, ebp
pop ebp
ret 0x1c