Function at 0x416710
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4198b5
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x422010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00403b00
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 8]
call fcn.00402c90
push eax
mov ecx, dword [ebp - 0x70]
call fcn.00416420
test eax, eax
jne 0x41679d
mov dword [ebp - 0x5c], 0xfffffff3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00403b60
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00402c50
mov eax, dword [ebp - 0x5c]
jmp 0x416a5f
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x14], 0
je 0x4167b3
mov dword [ebp - 0x54], 0x800100
jmp 0x4167ba
mov dword [ebp - 0x54], 0x100
mov ecx, dword [ebp - 0x14]
neg ecx
sbb ecx, ecx
and ecx, 0x16b
add ecx, 0x50
mov word [ebp - 0x58], cx
mov edx, dword [ebp + 0x40]
push edx
mov ecx, dword [ebp - 0x70]
call fcn.004160f0
mov ecx, dword [ebp + 0x40]
add ecx, 0x20
call fcn.00403c80
test eax, eax
je 0x416801
mov ecx, dword [ebp + 0x40]
add ecx, 0x20
call fcn.00402c90
push eax
mov ecx, 0x4279d0
call fcn.004171b0
jmp 0x416810
push 0x41e8bc
mov ecx, 0x4279d0
call fcn.004171b0
mov ecx, dword [ebp - 0x70]
call fcn.00414e30
mov ecx, dword [ebp + 0x40]
add ecx, 0x3c
call fcn.00403c80
test eax, eax
je 0x416837
mov ecx, dword [ebp + 0x40]
add ecx, 0x3c
call fcn.00402c90
mov dword [ebp - 0x74], eax
jmp 0x41683e
mov dword [ebp - 0x74], 0
mov ecx, dword [ebp + 0x40]
add ecx, 0x20
call fcn.00403c80
test eax, eax
je 0x41685d
mov ecx, dword [ebp + 0x40]
add ecx, 0x20
call fcn.00402c90
mov dword [ebp - 0x78], eax
jmp 0x416864
mov dword [ebp - 0x78], 0
push 0
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov ecx, dword [ebp + 0x40]
add ecx, 0x20
call fcn.00403c80
neg eax
sbb eax, eax
and eax, 2
add eax, 1
push eax
mov ecx, dword [ebp - 0x70]
add ecx, 0x30
call fcn.00402c90
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edx, dword [ebp - 0x70]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x70]
cmp dword [eax + 4], 0
jne 0x4168db
mov dword [ebp - 0x60], 0xfffffff8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00403b60
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00402c50
mov eax, dword [ebp - 0x60]
jmp 0x416a5f
mov dword [ebp - 0x50], 2
push 4
lea ecx, [ebp - 0x50]
push ecx
push 0x58
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x70]
call fcn.00414d50
push 0
mov dx, word [ebp - 0x58]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00402c90
push eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, dword [ebp - 0x70]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x70]
cmp dword [eax + 8], 0
jne 0x41696f
mov dword [ebp - 0x64], 0xfffffff8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00403b60
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00402c50
mov eax, dword [ebp - 0x64]
jmp 0x416a5f
mov ecx, dword [ebp - 0x70]
add ecx, 0x4c
call fcn.00403c80
test eax, eax
je 0x41698e
mov ecx, dword [ebp - 0x70]
add ecx, 0x4c
call fcn.00402c90
mov dword [ebp - 0x7c], eax
jmp 0x416995
mov dword [ebp - 0x7c], 0
lea ecx, [ebp + 0x24]
call fcn.00403c80
test eax, eax
je 0x4169aa
mov dword [ebp - 0x80], str.POST
jmp 0x4169b1
mov dword [ebp - 0x80], 0x41e8cc
mov ecx, dword [ebp - 0x54]
push ecx
push 0
mov edx, dword [ebp - 0x7c]
push edx
push 0
lea ecx, [ebp - 0x30]
call fcn.00402c90
push eax
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0xc], eax
push 4
lea edx, [ebp - 0x50]
push edx
push 0x58
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0xc], 0
jne 0x416a2e
mov dword [ebp - 0x68], 0xfffffff8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00403b60
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00402c50
mov eax, dword [ebp - 0x68]
jmp 0x416a5f
mov dword [ebp - 0x6c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00403b60
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.00402c50
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404197
mov esp, ebp
pop ebp
ret 0x3c