Function at 0x406850
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55508b
mov eax, dword fs:[0]
push eax
mov eax, 0x18a4
call fcn.00524fc0
mov eax, dword [0x5b7780]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18ac], ecx
mov dword [ebp - 0x18b0], 0
push 0x3c
push 0
mov eax, dword [ebp - 0x18ac]
add eax, 0x4c
push eax
call fcn.00516d90
add esp, 0xc
mov ecx, dword [ebp - 0x18ac]
mov dword [ecx + 0x4c], 0x3c
xor edx, edx
mov word [ebp - 0x90], dx
push 0x7e
push 0
lea eax, [ebp - 0x8e]
push eax
call fcn.00516d90
add esp, 0xc
mov ecx, dword [ebp - 0x18ac]
lea edx, [ebp - 0x90]
mov dword [ecx + 0x50], edx
mov eax, dword [ebp - 0x18ac]
mov dword [eax + 0x54], 0x40
xor ecx, ecx
mov word [ebp - 0x1890], cx
push 0x7fe
push 0
lea edx, [ebp - 0x188e]
push edx
call fcn.00516d90
add esp, 0xc
mov eax, dword [ebp - 0x18ac]
lea ecx, [ebp - 0x1890]
mov dword [eax + 0x5c], ecx
mov edx, dword [ebp - 0x18ac]
mov dword [edx + 0x60], 0x400
xor eax, eax
mov word [ebp - 0x1090], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x108e]
push ecx
call fcn.00516d90
add esp, 0xc
mov edx, dword [ebp - 0x18ac]
lea eax, [ebp - 0x1090]
mov dword [edx + 0x78], eax
mov ecx, dword [ebp - 0x18ac]
mov dword [ecx + 0x7c], 0x400
xor edx, edx
mov word [ebp - 0x890], dx
push 0x7fe
push 0
lea eax, [ebp - 0x88e]
push eax
call fcn.00516d90
add esp, 0xc
mov ecx, dword [ebp - 0x18ac]
lea edx, [ebp - 0x890]
mov dword [ecx + 0x80], edx
mov eax, dword [ebp - 0x18ac]
mov dword [eax + 0x84], 0x400
mov ecx, dword [ebp - 0x18ac]
add ecx, 0x4c
push ecx
push SysReAllocString
mov ecx, dword [ebp + 8]
call fcn.00404100
push eax
mov ecx, dword [ebp + 8]
call fcn.00408050
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x4069d1
jmp 0x406b54
lea ecx, [ebp - 0x18a8]
call fcn.00407e90
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x406a30
mov edx, dword [ebp - 0x18ac]
mov eax, dword [edx + 0x80]
push eax
lea ecx, [ebp - 0x18a8]
call fcn.00407ff0
lea ecx, [ebp - 0x18a8]
push ecx
mov ecx, dword [ebp - 0x18ac]
call fcn.00407010
mov edx, dword [ebp - 0x18ac]
add edx, 0x10
push edx
mov eax, dword [ebp - 0x18ac]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18ac]
mov eax, dword [edx + 0x10]
call eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp - 0x18ac]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x18ac]
cmp dword [edx + 0x1c], 0
jne 0x406a6c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18a8]
call fcn.004041c0
jmp 0x406b54
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18ac]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x406aa7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18a8]
call fcn.004041c0
jmp 0x406b54
push 0
mov eax, dword [ebp - 0x18ac]
movzx ecx, word [eax + 0x64]
push ecx
mov edx, dword [ebp - 0x18ac]
mov eax, dword [edx + 0x5c]
push eax
mov ecx, dword [ebp - 0x18ac]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, dword [ebp - 0x18ac]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0x18ac]
cmp dword [edx + 0x20], 0
jne 0x406af7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18a8]
call fcn.004041c0
jmp 0x406b54
mov eax, dword [ebp - 0x18ac]
mov ecx, dword [eax + 0x78]
push ecx
mov ecx, dword [ebp - 0x18ac]
add ecx, 0x34
call fcn.00407ff0
cmp dword [ebp + 0x10], 0
je 0x406b30
mov edx, dword [ebp - 0x18ac]
mov eax, dword [edx + 0x80]
push eax
mov ecx, dword [ebp - 0x18ac]
add ecx, 0x34
call fcn.00408030
mov dword [ebp - 0x18b0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18a8]
call fcn.004041c0
xor ecx, ecx
jne 0x40688f
mov eax, dword [ebp - 0x18b0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00516529
mov esp, ebp
pop ebp
ret 0xc