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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4198d5
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.00402da0
push eax
mov ecx, dword [ebp - 0x70]
call fcn.00416460
test eax, eax
jne 0x4167dd
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.004010c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.004010c0
mov eax, dword [ebp - 0x5c]
jmp 0x416a9f
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x14], 0
je 0x4167f3
mov dword [ebp - 0x54], 0x800100
jmp 0x4167fa
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.00416130
mov ecx, dword [ebp + 0x40]
add ecx, 0x20
call fcn.00403c80
test eax, eax
je 0x416841
mov ecx, dword [ebp + 0x40]
add ecx, 0x20
call fcn.00402da0
push eax
mov ecx, 0x427bd0
call fcn.004171f0
jmp 0x416850
push 0x41e8bc
mov ecx, 0x427bd0
call fcn.004171f0
mov ecx, dword [ebp - 0x70]
call fcn.00414e50
mov ecx, dword [ebp + 0x40]
add ecx, 0x3c
call fcn.00403c80
test eax, eax
je 0x416877
mov ecx, dword [ebp + 0x40]
add ecx, 0x3c
call fcn.00402da0
mov dword [ebp - 0x74], eax
jmp 0x41687e
mov dword [ebp - 0x74], 0
mov ecx, dword [ebp + 0x40]
add ecx, 0x20
call fcn.00403c80
test eax, eax
je 0x41689d
mov ecx, dword [ebp + 0x40]
add ecx, 0x20
call fcn.00402da0
mov dword [ebp - 0x78], eax
jmp 0x4168a4
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.00402da0
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 0x41691b
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.004010c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.004010c0
mov eax, dword [ebp - 0x60]
jmp 0x416a9f
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.00414d70
push 0
mov dx, word [ebp - 0x58]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00402da0
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 0x4169af
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.004010c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.004010c0
mov eax, dword [ebp - 0x64]
jmp 0x416a9f
mov ecx, dword [ebp - 0x70]
add ecx, 0x4c
call fcn.00403c80
test eax, eax
je 0x4169ce
mov ecx, dword [ebp - 0x70]
add ecx, 0x4c
call fcn.00402da0
mov dword [ebp - 0x7c], eax
jmp 0x4169d5
mov dword [ebp - 0x7c], 0
lea ecx, [ebp + 0x24]
call fcn.00403c80
test eax, eax
je 0x4169ea
mov dword [ebp - 0x80], str.POST
jmp 0x4169f1
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.00402da0
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 0x416a6e
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.004010c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.004010c0
mov eax, dword [ebp - 0x68]
jmp 0x416a9f
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.004010c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.004010c0
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